forked from MapComplete/MapComplete
UX: disable uploading images for now
This commit is contained in:
parent
6e3120664a
commit
b1591fc527
1 changed files with 41 additions and 33 deletions
|
@ -57,7 +57,7 @@
|
||||||
file,
|
file,
|
||||||
"image",
|
"image",
|
||||||
noBlur,
|
noBlur,
|
||||||
feature
|
feature,
|
||||||
)
|
)
|
||||||
if (!uploadResult) {
|
if (!uploadResult) {
|
||||||
return
|
return
|
||||||
|
@ -78,12 +78,19 @@
|
||||||
}
|
}
|
||||||
errors.setData(errs)
|
errors.setData(errs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let maintenanceBusy = true
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<LoginToggle {state}>
|
<LoginToggle {state}>
|
||||||
<LoginButton clss="small w-full" osmConnection={state.osmConnection} slot="not-logged-in">
|
<LoginButton clss="small w-full" osmConnection={state.osmConnection} slot="not-logged-in">
|
||||||
<Tr t={Translations.t.image.pleaseLogin} />
|
<Tr t={Translations.t.image.pleaseLogin} />
|
||||||
</LoginButton>
|
</LoginButton>
|
||||||
|
{#if maintenanceBusy}
|
||||||
|
<div class="alert">
|
||||||
|
Due to maintenance, uploading images is currently not possible. Sorry about this!
|
||||||
|
</div>
|
||||||
|
{:else}
|
||||||
<div class="my-4 flex flex-col">
|
<div class="my-4 flex flex-col">
|
||||||
<UploadingImageCounter {state} {tags} />
|
<UploadingImageCounter {state} {tags} />
|
||||||
{#each $errors as error}
|
{#each $errors as error}
|
||||||
|
@ -121,4 +128,5 @@
|
||||||
<Tr t={t.respectPrivacy} />
|
<Tr t={t.respectPrivacy} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
</LoginToggle>
|
</LoginToggle>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue