fix: warn users if no device is connected

fix: can't backup without a device
This commit is contained in:
2023-12-08 22:55:33 +01:00
parent af01426f43
commit f9a63a8724
4 changed files with 32 additions and 32 deletions

View File

@@ -50,15 +50,13 @@
<PwaStatus />
{/await}
{/if}
{#if $serialPort}
<button use:action={{title: $LL.backup.TITLE()}} use:popup={BackupPopup} class="icon {$syncStatus}">
{#if $userPreferences.backup}
history
{:else}
history_toggle_off
{/if}
</button>
{/if}
<button use:action={{title: $LL.backup.TITLE()}} use:popup={BackupPopup} class="icon {$syncStatus}">
{#if $userPreferences.backup}
history
{:else}
history_toggle_off
{/if}
</button>
<button
bind:this={connectButton}
use:action={{title: $LL.deviceManager.TITLE()}}