diff --git a/frontend/src/lib/components/OfflineBanner.svelte b/frontend/src/lib/components/OfflineBanner.svelte deleted file mode 100644 index 2595f66..0000000 --- a/frontend/src/lib/components/OfflineBanner.svelte +++ /dev/null @@ -1,61 +0,0 @@ - - -{#if !connection.online} -
-
- - - - Keine Verbindung zum Server - {#if connection.offlineFor !== null} - - ({since(connection.offlineFor)}) - - {/if} - - - - Zeitnahme läuft weiter — gestoppt wird auf diesem Gerät und übertragen, - sobald der Server wieder antwortet. - {#if timeOutbox.pending > 0} - {timeOutbox.pending} - {timeOutbox.pending === 1 ? 'Zeit wartet' : 'Zeiten warten'}. - {/if} - - - -
-
-{/if} diff --git a/frontend/src/lib/components/RunningTimesToast.svelte b/frontend/src/lib/components/RunningTimesToast.svelte index f9ff685..d41ac4f 100644 --- a/frontend/src/lib/components/RunningTimesToast.svelte +++ b/frontend/src/lib/components/RunningTimesToast.svelte @@ -1,9 +1,13 @@ -{#if running.length > 0 || timeOutbox.pending > 0} +{#if running.length > 0 || timeOutbox.pending > 0 || !connection.online}
@@ -116,9 +129,44 @@
+ {#if !connection.online} +
+ +
+

+ Keine Verbindung + {#if connection.offlineFor !== null} + + ({since(connection.offlineFor)}) + + {/if} +

+

+ Die Zeitnahme läuft weiter. Gestoppt wird auf diesem Gerät, + übertragen, sobald der Server wieder antwortet. +

+
+ +
+ {/if} + + {#if timeOutbox.pending > 0}
@@ -129,8 +177,6 @@ Gerät. {#if timeOutbox.error} {timeOutbox.error} - {:else if !timeOutbox.isOnline} - Kein Netz. {/if} + {#if live} + + {:else} + + {t.formattedTime} + + {/if}