UX: fix #1786
This commit is contained in:
parent
3461ed6099
commit
327a2860c7
1 changed files with 4 additions and 1 deletions
|
@ -265,12 +265,15 @@
|
||||||
{#if state.lastClickObject.hasPresets || state.lastClickObject.hasNoteLayer}
|
{#if state.lastClickObject.hasPresets || state.lastClickObject.hasNoteLayer}
|
||||||
<button
|
<button
|
||||||
class="pointer-events-auto w-fit"
|
class="pointer-events-auto w-fit"
|
||||||
|
class:disabled={$currentZoom < Constants.minZoomLevelToAddNewPoint}
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
state.openNewDialog()
|
state.openNewDialog()
|
||||||
}}
|
}}
|
||||||
on:keydown={forwardEventToMap}
|
on:keydown={forwardEventToMap}
|
||||||
>
|
>
|
||||||
{#if state.lastClickObject.hasPresets}
|
{#if $currentZoom < Constants.minZoomLevelToAddNewPoint}
|
||||||
|
<Tr t={Translations.t.general.add.zoomInFurther}/>
|
||||||
|
{:else if state.lastClickObject.hasPresets}
|
||||||
<Tr t={Translations.t.general.add.title} />
|
<Tr t={Translations.t.general.add.title} />
|
||||||
{:else}
|
{:else}
|
||||||
<Tr t={Translations.t.notes.addAComment} />
|
<Tr t={Translations.t.notes.addAComment} />
|
||||||
|
|
Loading…
Reference in a new issue