diff --git a/web/src/lib/components/app-sidebar.svelte b/web/src/lib/components/app-sidebar.svelte index d533f95..371a25f 100644 --- a/web/src/lib/components/app-sidebar.svelte +++ b/web/src/lib/components/app-sidebar.svelte @@ -1,5 +1,5 @@ + + + Notifications - MediaManager + + +
+
+

Notifications

+ {#if unreadNotifications.length > 0} + + {/if} +
+ + {#if loading} +
+
+
+ {:else} + +
+
+

+ Unread Notifications +

+ {#if unreadNotifications.length > 0} + + {unreadNotifications.length} + + {/if} +
+ + {#if unreadNotifications.length === 0} +
+
+

All caught up!

+

No unread notifications

+
+ {:else} +
+ {#each unreadNotifications as notification (notification.id)} +
+
+
+ {getNotificationIcon(notification.message)} +
+

+ {notification.message} +

+

+ {formatTimestamp(notification.timestamp)} +

+
+
+
+ + +
+
+
+ {/each} +
+ {/if} +
+ + +
+ +
+ + + {#if showRead} +
+ {#if readNotifications.length === 0} +
+

No read notifications

+
+ {:else} +
+ {#each readNotifications as notification (notification.id)} +
+
+
+ {getNotificationIcon(notification.message)} +
+

+ {notification.message} +

+

+ {formatTimestamp(notification.timestamp)} +

+
+
+
+ + +
+
+
+ {/each} +
+ {/if} +
+ {/if} + {/if} +