mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-17 18:13:21 +02:00
Remove mui/styles, Settings page, make minPriority functional, ahh so ugly
This commit is contained in:
parent
f23c7a2dbf
commit
8036aa2942
9 changed files with 265 additions and 60 deletions
web/src/app
|
@ -87,6 +87,24 @@ class Repository {
|
|||
console.log(`[Repository] Saving selected subscription ${selectedSubscriptionId} to localStorage`);
|
||||
localStorage.setItem('selectedSubscriptionId', selectedSubscriptionId);
|
||||
}
|
||||
|
||||
setMinPriority(minPriority) {
|
||||
localStorage.setItem('minPriority', minPriority.toString());
|
||||
}
|
||||
|
||||
getMinPriority() {
|
||||
const minPriority = localStorage.getItem('minPriority');
|
||||
return (minPriority) ? Number(minPriority) : 1;
|
||||
}
|
||||
|
||||
setDeleteAfter(deleteAfter) {
|
||||
localStorage.setItem('deleteAfter', deleteAfter.toString());
|
||||
}
|
||||
|
||||
getDeleteAfter() {
|
||||
const deleteAfter = localStorage.getItem('deleteAfter');
|
||||
return (deleteAfter) ? Number(deleteAfter) : 604800; // Default is one week
|
||||
}
|
||||
}
|
||||
|
||||
const repository = new Repository();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue