From f9d61213fbfde66ffc6f8ca0e112d6445c6c4695 Mon Sep 17 00:00:00 2001
From: Jo-Philipp Wich <jo@mein.io>
Date: Fri, 3 Apr 2020 13:27:20 +0200
Subject: luci-mod-status: use LuCI.ui.instantiateView() to load index view

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
---
 modules/luci-mod-status/luasrc/view/admin_status/index.htm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'modules/luci-mod-status/luasrc/view/admin_status/index.htm')

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 8e00564da4..7d7a42c2e3 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%>
-- 
cgit v1.2.3