From bc75c65a6c678c3ac836ee120aacc4288c982a6f Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Mon, 16 Oct 2023 17:11:26 +0200 Subject: [PATCH] fix notifications all read --- .../Components/Layouts/Folder/FolderInformation/index.tsx | 6 +++++- src/front/Stores/Toasts.tsx | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx index 1fe3c76f..3342b5f1 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx @@ -149,7 +149,11 @@ class FolderInformationClass extends BasePage { {this.props.isAnchored === AnchorStatus.ANCHORING && ( )} {this.props.isAnchored === AnchorStatus.VERIFIED_ON_CHAIN && ( diff --git a/src/front/Stores/Toasts.tsx b/src/front/Stores/Toasts.tsx index 126461a3..3cb81152 100644 --- a/src/front/Stores/Toasts.tsx +++ b/src/front/Stores/Toasts.tsx @@ -103,7 +103,8 @@ export default class Toasts { read: true, }); } - this.event.emit("change", []); + this.toastList.splice(0, this.toastList.length); + this.event.emit("change", this.toastList); } /**