From 7b9c8b1e7f70e039f2760fa964fd3cc19a030ca3 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Wed, 10 Apr 2024 13:09:57 +0500 Subject: [PATCH] Silent: false for notifications Signed-off-by: Denis Bykhov --- models/notification/src/index.ts | 1 + models/tracker/src/index.ts | 1 + .../src/components/BrowserNotificatator.svelte | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/models/notification/src/index.ts b/models/notification/src/index.ts index b3ce0534b1d..9ef9b1c022e 100644 --- a/models/notification/src/index.ts +++ b/models/notification/src/index.ts @@ -576,6 +576,7 @@ export function createModel (builder: Builder): void { group: notification.ids.NotificationGroup, providers: { [notification.providers.EmailNotification]: true, + [notification.providers.BrowserNotification]: true, [notification.providers.PlatformNotification]: true }, templates: { diff --git a/models/tracker/src/index.ts b/models/tracker/src/index.ts index 8ab36d53ccb..86ff7dd30bf 100644 --- a/models/tracker/src/index.ts +++ b/models/tracker/src/index.ts @@ -119,6 +119,7 @@ function defineNotifications (builder: Builder): void { }, providers: { [notification.providers.PlatformNotification]: true, + [notification.providers.BrowserNotification]: true, [notification.providers.EmailNotification]: true } }, diff --git a/plugins/notification-resources/src/components/BrowserNotificatator.svelte b/plugins/notification-resources/src/components/BrowserNotificatator.svelte index 50a87997a06..ab424871ca4 100644 --- a/plugins/notification-resources/src/components/BrowserNotificatator.svelte +++ b/plugins/notification-resources/src/components/BrowserNotificatator.svelte @@ -44,7 +44,8 @@ for (const value of notifications) { const req: NotificationOptions = { body: value.body, - tag: value._id + tag: value._id, + silent: false } const notification = new Notification(value.title, req) if (value.onClickLocation !== undefined) {