mirror of
https://github.com/flarum/framework.git
synced 2025-06-06 07:54:32 +08:00
Add init hook as a way to effectively monkey patch constructors
Related to #246
This commit is contained in:
@ -16,7 +16,7 @@ export default class SettingsPage extends UserPage {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
this.init(app.session.user);
|
||||
this.show(app.session.user);
|
||||
app.setTitle(app.trans('core.settings'));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user