Browser notification (#2178)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov
2022-06-30 18:24:19 +07:00
committed by GitHub
parent 643544c4cb
commit 7653c1cf83
12 changed files with 322 additions and 100 deletions
@@ -17,7 +17,7 @@
import contact, { Employee, EmployeeAccount } from '@anticrm/contact'
import core, { Class, Client, Doc, getCurrentAccount, Ref, Space } from '@anticrm/core'
import notification, { NotificationStatus } from '@anticrm/notification'
import { NotificationClientImpl } from '@anticrm/notification-resources'
import { NotificationClientImpl, BrowserNotificatator } from '@anticrm/notification-resources'
import { getMetadata, getResource, IntlString } from '@anticrm/platform'
import { Avatar, createQuery, setClient } from '@anticrm/presentation'
import {
@@ -119,9 +119,6 @@
},
(res) => {
hasNotification = res.length > 0
},
{
limit: 1
}
)
@@ -517,6 +514,7 @@
</svelte:fragment>
</Popup>
<DatePickerPopup />
<BrowserNotificatator />
{:else}
<div class="flex-col-center justify-center h-full flex-grow">
<h1><Label label={workbench.string.AccountDisabled} /></h1>