diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-10-28 14:46:27 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-10-28 14:46:27 +0200 |
commit | 0ad54e4a7ca8f9b526442954b12a6b04e5c7403c (patch) | |
tree | 53faeecc02e12dd4147082fdf9ce03ffb3538fcc /modules/luci-mod-status/htdocs | |
parent | d513f1461fae9cc67425c38e6ca6711932d12d38 (diff) |
luci-mod-status: disable DSL status if not present
Fixes: #5465
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-status/htdocs')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/50_dsl.js | 3 |
1 files changed, 3 insertions, 0 deletions
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(), {}); }, |