1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 02:17:37 +02:00

Mount navigation in ForumApplication

This commit is contained in:
Alexander Skvortsov
2020-08-08 13:59:25 -04:00
committed by Franz Liedke
parent 6547290472
commit dde9c9c51b

View File

@@ -115,8 +115,8 @@ export default class ForumApplication extends Application {
this.routes[defaultAction].path = '/'; this.routes[defaultAction].path = '/';
this.history.push(defaultAction, this.translator.trans('core.forum.header.back_to_index_tooltip'), '/'); this.history.push(defaultAction, this.translator.trans('core.forum.header.back_to_index_tooltip'), '/');
// 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); m.mount(document.getElementById('header-primary'), HeaderPrimary);
m.mount(document.getElementById('header-secondary'), HeaderSecondary); m.mount(document.getElementById('header-secondary'), HeaderSecondary);
// m.mount(document.getElementById('composer'), Composer.component({ state: this.composer })); // m.mount(document.getElementById('composer'), Composer.component({ state: this.composer }));