Skip to content

Commit

Permalink
fix(ui): fix export button displayed even when there's no map to expo…
Browse files Browse the repository at this point in the history
…rt yet
  • Loading branch information
MichaelMakesGames committed May 1, 2024
1 parent 6e93812 commit 0df12da
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/renderer/src/lib/map/MapContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -378,14 +378,16 @@
<HeroiconArrowsPointingOut />
</button>
{/if}
<button
type="button"
class="variant-filled btn absolute right-3 top-3"
transition:fade
on:click={openExportModal}
>
{$t('export.button')}
</button>
{#if dataOrNull}
<button
type="button"
class="variant-filled btn absolute right-3 top-3"
transition:fade
on:click={openExportModal}
>
{$t('export.button')}
</button>
{/if}
{#if tooltip != null && !zooming && !resizing}
<div class="pointer-events-none absolute left-0 top-0 h-full w-full overflow-hidden">
<MapTooltip {...tooltip} gameState={gameStateOrNull} />
Expand Down

0 comments on commit 0df12da

Please sign in to comment.