mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +02:00
Move config method of IndexPage into oncreate and onremove
This commit is contained in:
committed by
Franz Liedke
parent
30a61b8b42
commit
c20ae678f5
@@ -72,12 +72,8 @@ export default class IndexPage extends Page {
|
||||
);
|
||||
}
|
||||
|
||||
config(isInitialized, context) {
|
||||
super.config(...arguments);
|
||||
|
||||
if (isInitialized) return;
|
||||
|
||||
extend(context, 'onunload', () => $('#app').css('min-height', ''));
|
||||
oncreate(vnode) {
|
||||
super.oncreate(vnode);
|
||||
|
||||
app.setTitle(app.translator.trans('core.forum.index.meta_title_text'));
|
||||
app.setTitleCount(0);
|
||||
@@ -117,6 +113,12 @@ export default class IndexPage extends Page {
|
||||
}
|
||||
}
|
||||
|
||||
onremove(vnode) {
|
||||
super.onremove(vnode);
|
||||
|
||||
$('#app').css('min-height', '');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the component to display as the hero.
|
||||
*
|
||||
|
Reference in New Issue
Block a user