1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

Add composer mount to ForumApplication

This commit is contained in:
Alexander Skvortsov
2020-08-08 14:34:32 -04:00
committed by Franz Liedke
parent 91609b8a71
commit 57b85f501a

View File

@@ -76,7 +76,7 @@ export default class ForumApplication extends Application {
/* /*
* An object which controls the state of the composer. * An object which controls the state of the composer.
*/ */
// composer = new ComposerState(); composer = new ComposerState();
constructor() { constructor() {
super(); super();
@@ -119,7 +119,7 @@ export default class ForumApplication extends Application {
m.mount(document.getElementById('header-navigation'), Navigation); 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'), { view: () => Composer.component({ state: this.composer }) });
// this.pane = new Pane(document.getElementById('app')); // this.pane = new Pane(document.getElementById('app'));