mirror of
https://github.com/flarum/core.git
synced 2025-07-17 23:01:17 +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;
|
this.moreResults = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clear() {
|
||||||
|
this.notificationPages = [];
|
||||||
|
}
|
||||||
|
|
||||||
getNotificationPages() {
|
getNotificationPages() {
|
||||||
return this.notificationPages;
|
return this.notificationPages;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user