mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-21 17:17:54 +02:00
TSK-1341 Remove last view (#3115)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -22,9 +22,8 @@
|
||||
export let size: IconSize = 'small'
|
||||
|
||||
const notificationClient = NotificationClientImpl.getClient()
|
||||
const lastViews = notificationClient.getLastViews()
|
||||
$: lastView = $lastViews[object._id]
|
||||
$: subscribed = lastView !== undefined && lastView !== -1
|
||||
const store = notificationClient.docUpdatesStore
|
||||
$: subscribed = $store.get(object._id) !== undefined
|
||||
</script>
|
||||
|
||||
{#if subscribed}
|
||||
|
||||
Reference in New Issue
Block a user