forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
8ef7af613f
commit
00151afdea
114 changed files with 2857 additions and 2135 deletions
|
@ -38,7 +38,7 @@
|
|||
|
||||
let errors = new UIEventSource<Translation[]>([])
|
||||
|
||||
async function handleFiles(files: FileList, ignoreGps: boolean= false) {
|
||||
async function handleFiles(files: FileList, ignoreGps: boolean = false) {
|
||||
const errs = []
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
const file = files.item(i)
|
||||
|
@ -102,7 +102,11 @@
|
|||
capture="environment"
|
||||
cls="button border-2 flex flex-col"
|
||||
multiple={true}
|
||||
on:submit={(e) =>{ handleFiles(e.detail) ; e.preventDefault(); e.stopPropagation()}}
|
||||
on:submit={(e) => {
|
||||
handleFiles(e.detail)
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
}}
|
||||
>
|
||||
<div class="flex w-full items-center justify-center text-2xl">
|
||||
{#if image !== undefined}
|
||||
|
@ -114,7 +118,7 @@
|
|||
{labelText}
|
||||
{:else}
|
||||
<div class="flex flex-col">
|
||||
<Tr t={t.addPicture}/>
|
||||
<Tr t={t.addPicture} />
|
||||
{#if noBlur}
|
||||
<span class="subtle text-sm">
|
||||
<Tr t={t.upload.noBlur} />
|
||||
|
@ -128,9 +132,13 @@
|
|||
accept=".jpg, .jpeg"
|
||||
cls="flex justify-center md:hidden button"
|
||||
multiple={true}
|
||||
on:submit={(e) =>{ return handleFiles(e.detail, true) ; e.preventDefault(); e.stopPropagation()}}
|
||||
on:submit={(e) => {
|
||||
return handleFiles(e.detail, true)
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
}}
|
||||
>
|
||||
<Tr t={t.selectFile}/>
|
||||
<Tr t={t.selectFile} />
|
||||
</FileSelector>
|
||||
<div class="subtle text-xs italic">
|
||||
<Tr t={Translations.t.general.attribution.panoramaxLicenseCCBYSA} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue