mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-08-21 17:04:08 +02:00
Make DELETE endpoint, add different UI description
This commit is contained in:
parent
eb220544a3
commit
58992fc795
5 changed files with 47 additions and 16 deletions
web/src/app
|
@ -119,7 +119,12 @@ class SubscriptionManager {
|
|||
return;
|
||||
}
|
||||
|
||||
await api.updateWebPushSubscriptions(topics, browserSubscription);
|
||||
if (topics.length > 0) {
|
||||
await api.updateWebPush(browserSubscription, topics);
|
||||
} else {
|
||||
await api.deleteWebPush(browserSubscription);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
async updateState(subscriptionId, state) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue