mirror of
https://github.com/flarum/core.git
synced 2025-08-03 23:17:43 +02:00
Extract NotificationList state (#2185)
* Extract NotificationList state
This commit is contained in:
committed by
GitHub
parent
5bca4fda9d
commit
65f2d5fb75
@@ -14,6 +14,7 @@ import routes from './routes';
|
||||
import alertEmailConfirmation from './utils/alertEmailConfirmation';
|
||||
import Application from '../common/Application';
|
||||
import Navigation from '../common/components/Navigation';
|
||||
import NotificationListState from './states/NotificationListState';
|
||||
|
||||
export default class ForumApplication extends Application {
|
||||
/**
|
||||
@@ -63,6 +64,13 @@ export default class ForumApplication extends Application {
|
||||
*/
|
||||
history = new History();
|
||||
|
||||
/**
|
||||
* An object which controls the state of the user's notifications.
|
||||
*
|
||||
* @type {NotificationListState}
|
||||
*/
|
||||
notifications = new NotificationListState(this);
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
|
Reference in New Issue
Block a user