mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 04:29:46 +08:00
Expose a method for clearing notification list
Needed for pusher extension. Refs #2185.
This commit is contained in:
parent
365ae0464e
commit
0b9e8e0408
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user