mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-17 18:13:21 +02:00
"No topics" and "No notifications" view
This commit is contained in:
parent
0909354a6c
commit
17e5af654b
9 changed files with 494 additions and 11 deletions
web/src/app
|
@ -76,6 +76,17 @@ class Repository {
|
|||
}));
|
||||
localStorage.setItem('users', serialized);
|
||||
}
|
||||
|
||||
loadSelectedSubscriptionId() {
|
||||
console.log(`[Repository] Loading selected subscription ID from localStorage`);
|
||||
const selectedSubscriptionId = localStorage.getItem('selectedSubscriptionId');
|
||||
return (selectedSubscriptionId) ? selectedSubscriptionId : "";
|
||||
}
|
||||
|
||||
saveSelectedSubscriptionId(selectedSubscriptionId) {
|
||||
console.log(`[Repository] Saving selected subscription ${selectedSubscriptionId} to localStorage`);
|
||||
localStorage.setItem('selectedSubscriptionId', selectedSubscriptionId);
|
||||
}
|
||||
}
|
||||
|
||||
const repository = new Repository();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue