mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02:00
Expose a method for clearing notification list
Needed for pusher extension. Refs #2185.
This commit is contained in:
@@ -9,6 +9,10 @@ export default class NotificationListState {
|
||||
this.moreResults = false;
|
||||
}
|
||||
|
||||
clear() {
|
||||
this.notificationPages = [];
|
||||
}
|
||||
|
||||
getNotificationPages() {
|
||||
return this.notificationPages;
|
||||
}
|
||||
|
Reference in New Issue
Block a user