From f7931e8a30d6c3b1c69588e6d159f8c218bea2cd Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Fri, 7 Aug 2020 13:21:55 -0400 Subject: [PATCH] infrastructure: uncomment modal manager mount in application mount --- js/src/common/Application.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();