From: Jo-Philipp Wich Date: Thu, 28 Oct 2021 12:46:27 +0000 (+0200) Subject: luci-mod-status: disable DSL status if not present X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0ad54e4a7ca8f9b526442954b12a6b04e5c7403c;p=project%2Fluci.git luci-mod-status: disable DSL status if not present Fixes: #5465 Signed-off-by: Jo-Philipp Wich --- 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(), {}); },