mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 00:43:04 +00:00
fix: warn users if no device is connected
fix: can't backup without a device
This commit is contained in:
@@ -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()}}
|
||||
|
||||
Reference in New Issue
Block a user