1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Expose a method for clearing notification list

Needed for pusher extension.

Refs #2185.
This commit is contained in:
Franz Liedke
2020-06-26 15:10:41 +02:00
parent cea7824b57
commit 7dc3a194c3

View File

@@ -9,6 +9,10 @@ export default class NotificationListState {
this.moreResults = false;
}
clear() {
this.notificationPages = [];
}
getNotificationPages() {
return this.notificationPages;
}