From 0b9e8e0408033a1aa621aaef3cc1419c89ed236c Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 26 Jun 2020 15:10:41 +0200 Subject: [PATCH] Expose a method for clearing notification list Needed for pusher extension. Refs #2185. --- framework/core/js/src/forum/states/NotificationListState.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/core/js/src/forum/states/NotificationListState.js b/framework/core/js/src/forum/states/NotificationListState.js index 93ad0bff5..31648d49d 100644 --- a/framework/core/js/src/forum/states/NotificationListState.js +++ b/framework/core/js/src/forum/states/NotificationListState.js @@ -9,6 +9,10 @@ export default class NotificationListState { this.moreResults = false; } + clear() { + this.notificationPages = []; + } + getNotificationPages() { return this.notificationPages; }