mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Silent: false for notifications (#5284)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
50d5c3bad9
commit
ed192130f1
@ -576,6 +576,7 @@ export function createModel (builder: Builder): void {
|
|||||||
group: notification.ids.NotificationGroup,
|
group: notification.ids.NotificationGroup,
|
||||||
providers: {
|
providers: {
|
||||||
[notification.providers.EmailNotification]: true,
|
[notification.providers.EmailNotification]: true,
|
||||||
|
[notification.providers.BrowserNotification]: true,
|
||||||
[notification.providers.PlatformNotification]: true
|
[notification.providers.PlatformNotification]: true
|
||||||
},
|
},
|
||||||
templates: {
|
templates: {
|
||||||
|
@ -119,6 +119,7 @@ function defineNotifications (builder: Builder): void {
|
|||||||
},
|
},
|
||||||
providers: {
|
providers: {
|
||||||
[notification.providers.PlatformNotification]: true,
|
[notification.providers.PlatformNotification]: true,
|
||||||
|
[notification.providers.BrowserNotification]: true,
|
||||||
[notification.providers.EmailNotification]: true
|
[notification.providers.EmailNotification]: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -44,7 +44,8 @@
|
|||||||
for (const value of notifications) {
|
for (const value of notifications) {
|
||||||
const req: NotificationOptions = {
|
const req: NotificationOptions = {
|
||||||
body: value.body,
|
body: value.body,
|
||||||
tag: value._id
|
tag: value._id,
|
||||||
|
silent: false
|
||||||
}
|
}
|
||||||
const notification = new Notification(value.title, req)
|
const notification = new Notification(value.title, req)
|
||||||
if (value.onClickLocation !== undefined) {
|
if (value.onClickLocation !== undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user