forked from MapComplete/MapComplete
UX: add background to 'add new point'-button if disabled
This commit is contained in:
parent
40efc9aefd
commit
46211e4c2e
3 changed files with 12 additions and 1 deletions
|
@ -287,7 +287,7 @@
|
|||
<If condition={featureSwitches.featureSwitchEnableLogin}>
|
||||
{#if state.layout.hasPresets() || state.layout.hasNoteLayer()}
|
||||
<button
|
||||
class="pointer-events-auto w-fit"
|
||||
class="pointer-events-auto w-fit low-interaction"
|
||||
class:disabled={$currentZoom < Constants.minZoomLevelToAddNewPoint}
|
||||
on:click={() => {
|
||||
state.openNewDialog()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue