mirror of
https://github.com/flarum/core.git
synced 2025-08-10 18:35:56 +02:00
Mount AlertManager in Application
This commit is contained in:
committed by
Franz Liedke
parent
479f655bb3
commit
095dce9a3e
@@ -191,7 +191,7 @@ export default class Application {
|
|||||||
mount(basePath = '') {
|
mount(basePath = '') {
|
||||||
// An object with a callable view property is used in order to pass arguments to the component; see https://mithril.js.org/mount.html
|
// 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'), { view: () => ModalManager.component({ 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'), { view: () => AlertManager.component({ state: this.alerts }) });
|
||||||
|
|
||||||
this.drawer = new Drawer();
|
this.drawer = new Drawer();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user