Create global inbox actions (#4903)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-03-08 14:59:20 +07:00
committed by GitHub
parent 0483e2ac0d
commit 5ce079cf3d
11 changed files with 172 additions and 43 deletions
+6 -2
View File
@@ -284,6 +284,7 @@ export interface InboxNotificationsClient {
deleteNotifications: (client: TxOperations, ids: Array<Ref<InboxNotification>>) => Promise<void>
deleteAllNotifications: () => Promise<void>
readAllNotifications: () => Promise<void>
unreadAllNotifications: () => Promise<void>
}
/**
@@ -374,7 +375,9 @@ const notification = plugin(notificationId, {
Inbox: '' as Asset,
Track: '' as Asset,
DontTrack: '' as Asset,
Hide: '' as Asset
Hide: '' as Asset,
ReadAll: '' as Asset,
UnreadAll: '' as Asset
},
space: {
Notifications: '' as Ref<Space>
@@ -395,7 +398,8 @@ const notification = plugin(notificationId, {
GroupedList: '' as IntlString,
All: '' as IntlString,
ArchiveAll: '' as IntlString,
ReadAll: '' as IntlString,
MarkReadAll: '' as IntlString,
MarkUnreadAll: '' as IntlString,
ArchiveAllConfirmationTitle: '' as IntlString,
ArchiveAllConfirmationMessage: '' as IntlString
},