From 0ad54e4a7ca8f9b526442954b12a6b04e5c7403c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 28 Oct 2021 14:46:27 +0200 Subject: luci-mod-status: disable DSL status if not present Fixes: #5465 Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/status/include/50_dsl.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view/status') diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/50_dsl.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/50_dsl.js index 714086f0d7..ed47758f4f 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/50_dsl.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/50_dsl.js @@ -44,6 +44,9 @@ return baseclass.extend({ title: _('DSL'), load: function() { + if (!L.hasSystemFeature('dsl')) + return Promise.reject(); + return L.resolveDefault(callDSLMetrics(), {}); }, -- cgit v1.2.3