+
+
+
+
+
+
+
+ {first_letter}
+
+
+
+
+
+
+
+
{username}
+
+
"Online"
+
+
+
+
-
-
-
-
-
"Admin User"
-
"Online"
-
-
+
-
-
- }}
+
+ }}
diff --git a/frontend/src/store.rs b/frontend/src/store.rs
index 5307b41..badc122 100644
--- a/frontend/src/store.rs
+++ b/frontend/src/store.rs
@@ -27,9 +27,9 @@ pub fn show_toast_with_signal(
message: message.into(),
};
let item = NotificationItem { id, notification };
-
+
notifications.update(|list| list.push(item));
-
+
// Auto-remove after 5 seconds
let _ = set_timeout(
move || {
@@ -120,6 +120,7 @@ pub struct TorrentStore {
pub search_query: RwSignal
,
pub global_stats: RwSignal,
pub notifications: RwSignal>,
+ pub user: RwSignal