mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-31 00:05:27 +02:00
Add:Notification edit/delete and UI updates #996
This commit is contained in:
parent
37a3fdb606
commit
8e8046541e
8 changed files with 179 additions and 60 deletions
|
@ -60,7 +60,7 @@ class Notification {
|
|||
const keysToUpdate = ['libraryId', 'eventName', 'urls', 'titleTemplate', 'bodyTemplate', 'enabled', 'type']
|
||||
var hasUpdated = false
|
||||
for (const key of keysToUpdate) {
|
||||
if (payload[key]) {
|
||||
if (payload[key] !== undefined) {
|
||||
if (key === 'urls') {
|
||||
if (payload[key].join(',') !== this.urls.join(',')) {
|
||||
this.urls = [...payload[key]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue