mirror of
https://github.com/flarum/core.git
synced 2025-08-10 10:24:46 +02:00
update: admin/AdminApplication
This commit is contained in:
committed by
Franz Liedke
parent
8b7fa012c7
commit
68aa6e26da
@@ -27,13 +27,16 @@ export default class AdminApplication extends Application {
|
|||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
*/
|
*/
|
||||||
mount() {
|
mount() {
|
||||||
m.mount(document.getElementById('app-navigation'), Navigation.component({ className: 'App-backControl', drawer: true }));
|
m.mount(document.getElementById('app-navigation'), { view: () => Navigation.component({ className: 'App-backControl', drawer: true }) });
|
||||||
m.mount(document.getElementById('header-navigation'), Navigation.component());
|
m.mount(document.getElementById('header-navigation'), Navigation);
|
||||||
m.mount(document.getElementById('header-primary'), HeaderPrimary.component());
|
m.mount(document.getElementById('header-primary'), HeaderPrimary);
|
||||||
m.mount(document.getElementById('header-secondary'), HeaderSecondary.component());
|
m.mount(document.getElementById('header-secondary'), HeaderSecondary);
|
||||||
m.mount(document.getElementById('admin-navigation'), AdminNav.component());
|
m.mount(document.getElementById('admin-navigation'), AdminNav);
|
||||||
|
|
||||||
|
if (!document.location.hash) document.location.hash = '#/';
|
||||||
|
|
||||||
|
m.route.prefix = '#';
|
||||||
|
|
||||||
m.route.mode = 'hash';
|
|
||||||
super.mount();
|
super.mount();
|
||||||
|
|
||||||
// If an extension has just been enabled, then we will run its settings
|
// If an extension has just been enabled, then we will run its settings
|
||||||
|
Reference in New Issue
Block a user