diff --git a/plugins/chunter-resources/src/components/notification/ThreadNotificationPresenter.svelte b/plugins/chunter-resources/src/components/notification/ThreadNotificationPresenter.svelte
index 6b32eec1ef..5a59258672 100644
--- a/plugins/chunter-resources/src/components/notification/ThreadNotificationPresenter.svelte
+++ b/plugins/chunter-resources/src/components/notification/ThreadNotificationPresenter.svelte
@@ -15,12 +15,16 @@
-
+
diff --git a/plugins/chunter-resources/src/components/threads/ThreadMessagePresenter.svelte b/plugins/chunter-resources/src/components/threads/ThreadMessagePresenter.svelte
index 89b330d673..e172b2bcf1 100644
--- a/plugins/chunter-resources/src/components/threads/ThreadMessagePresenter.svelte
+++ b/plugins/chunter-resources/src/components/threads/ThreadMessagePresenter.svelte
@@ -15,6 +15,7 @@
@@ -41,6 +44,8 @@
{embedded}
{skipLabel}
{withFlatActions}
+ {excludedActions}
+ {actions}
{onClick}
{onReply}
/>
diff --git a/plugins/notification-resources/src/components/DocNotifyContextCard.svelte b/plugins/notification-resources/src/components/DocNotifyContextCard.svelte
index 686e168fcf..1d70312819 100644
--- a/plugins/notification-resources/src/components/DocNotifyContextCard.svelte
+++ b/plugins/notification-resources/src/components/DocNotifyContextCard.svelte
@@ -58,6 +58,7 @@
value.attachedToClass,
notification.mixin.NotificationContextPresenter
)
+ $: isCompact = notifications.length === 1
{#if visibleNotification}
@@ -66,69 +67,88 @@
{
dispatch('click', { context: value, notification: visibleNotification })
}}
>
-
- {#if !embedded}
+ {#if !embedded && withActions}
diff --git a/plugins/notification-resources/src/components/inbox/Inbox.svelte b/plugins/notification-resources/src/components/inbox/Inbox.svelte
index 1511b67e01..99fdb3d8e8 100644
--- a/plugins/notification-resources/src/components/inbox/Inbox.svelte
+++ b/plugins/notification-resources/src/components/inbox/Inbox.svelte
@@ -154,7 +154,7 @@
if (selectedContext !== undefined) {
loc.fragment = selectedContext._id
- loc.query = { message: event?.detail?.notification?.attachedTo }
+ loc.query = { message: event?.detail?.notification?.attachedTo ?? null }
} else {
loc.fragment = undefined
loc.query = undefined
@@ -283,7 +283,8 @@
}
.notifications {
- margin: 0 0.5rem;
+ margin: 0.5rem;
+ padding: 0.5rem;
height: 100%;
}
diff --git a/plugins/notification-resources/src/components/inbox/InboxNotificationPresenter.svelte b/plugins/notification-resources/src/components/inbox/InboxNotificationPresenter.svelte
index 9584a3cc06..be641c4b1d 100644
--- a/plugins/notification-resources/src/components/inbox/InboxNotificationPresenter.svelte
+++ b/plugins/notification-resources/src/components/inbox/InboxNotificationPresenter.svelte
@@ -17,11 +17,13 @@
import { getClient } from '@hcengineering/presentation'
import { Component } from '@hcengineering/ui'
import { Class, Doc, Ref } from '@hcengineering/core'
- import { ActivityNotificationViewlet, DisplayInboxNotification } from '@hcengineering/notification'
+ import { ActivityNotificationViewlet, DisplayInboxNotification, DocNotifyContext } from '@hcengineering/notification'
export let value: DisplayInboxNotification
export let embedded = false
export let skipLabel = false
+ export let showNotify = true
+ export let withActions = true
export let viewlets: ActivityNotificationViewlet[] = []
export let onClick: (() => void) | undefined = undefined
export let onCheck: ((isChecked: boolean) => void) | undefined = undefined
@@ -33,5 +35,8 @@
{#if objectPresenter}
-
+
{/if}