1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 08:56:38 +02:00

Mount AlertManager in Application

This commit is contained in:
Alexander Skvortsov
2020-08-09 22:50:04 -04:00
committed by Franz Liedke
parent 479f655bb3
commit 095dce9a3e

View File

@@ -191,7 +191,7 @@ export default class Application {
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
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();