mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-08-20 16:34:22 +02:00
Conn state listener, click action button
This commit is contained in:
parent
3bce0ad4ae
commit
5878d7e5a6
8 changed files with 120 additions and 27 deletions
web/src/app
|
@ -13,6 +13,11 @@ class SubscriptionManager {
|
|||
await db.subscriptions.put(subscription);
|
||||
}
|
||||
|
||||
async updateState(subscriptionId, state) {
|
||||
console.log(`Update state: ${subscriptionId} ${state}`)
|
||||
db.subscriptions.update(subscriptionId, { state: state });
|
||||
}
|
||||
|
||||
async remove(subscriptionId) {
|
||||
await db.subscriptions.delete(subscriptionId);
|
||||
await db.notifications
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue