summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-03 13:27:20 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-03 13:27:20 +0200
commitf9d61213fbfde66ffc6f8ca0e112d6445c6c4695 (patch)
treea2a1c40cfe015460b97affb94995a8c6ee5087ac /modules/luci-mod-status
parentd9e9cf92d15c81284000c7c97c6f7bf2b5953c2d (diff)
luci-mod-status: use LuCI.ui.instantiateView() to load index view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-status')
-rw-r--r--modules/luci-mod-status/luasrc/view/admin_status/index.htm9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/luci-mod-status/luasrc/view/admin_status/index.htm b/modules/luci-mod-status/luasrc/view/admin_status/index.htm
index 8e00564da..7d7a42c2e 100644
--- a/modules/luci-mod-status/luasrc/view/admin_status/index.htm
+++ b/modules/luci-mod-status/luasrc/view/admin_status/index.htm
@@ -69,9 +69,10 @@ function renderBadge(icon, title) {
-%>
</div>
-<script type="text/javascript">L.require('view.status.index').catch(function(err) {
- dom.content(document.querySelector('#view'), null);
- L.error(err);
-});</script>
+<script type="text/javascript">
+ L.require('ui').then(function(ui) {
+ ui.instantiateView('status/index');
+ });
+</script>
<%+footer%>