diff --git a/js/src/common/Application.js b/js/src/common/Application.js index 9efe72dfd..9013185ea 100644 --- a/js/src/common/Application.js +++ b/js/src/common/Application.js @@ -189,8 +189,8 @@ export default class Application { } mount(basePath = '') { - // TODO stuff - // m.mount(document.getElementById('modal'), ); + // 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'), ); // this.drawer = new Drawer();