1
0
mirror of https://github.com/flarum/core.git synced 2025-08-12 19:34:18 +02:00

infrastructure: uncomment modal manager mount in application mount

This commit is contained in:
Alexander Skvortsov
2020-08-07 13:21:55 -04:00
committed by Franz Liedke
parent 3ba655b2f9
commit f7931e8a30

View File

@@ -189,8 +189,8 @@ export default class Application {
} }
mount(basePath = '') { mount(basePath = '') {
// TODO stuff // An object with a callable view property is used in order to pass arguments to the component; see https://mithril.js.org/mount.html
// m.mount(document.getElementById('modal'), <ModalManager state={this.modal} />); m.mount(document.getElementById('modal'), { view: () => ModalManager.component({ state: this.modal }) });
// m.mount(document.getElementById('alerts'), <AlertManager state={this.alerts} />); // m.mount(document.getElementById('alerts'), <AlertManager state={this.alerts} />);
// this.drawer = new Drawer(); // this.drawer = new Drawer();