diff options
author | Andre Heider <a.heider@gmail.com> | 2022-09-20 08:11:44 +0200 |
---|---|---|
committer | Andre Heider <a.heider@gmail.com> | 2022-10-21 09:08:13 +0200 |
commit | 45ab2cd6be0cac32ec49364280bbfa2c43c17eda (patch) | |
tree | fbf33c7b0ec404f1416b364e0c1311d3e49fb67e /modules/luci-mod-status/htdocs | |
parent | e019fc5d60cdbb0ff5cc9246371321604ad12fb0 (diff) |
luci-mod-status: use network.getDSLModemType()
This matches what luci-mod-network does for the DSL modem configuration.
Since this is based on a common uci config, it may also prevent issues as
fixed with 111c551c "luci-base: fix DSL feature detection" in the future.
Signed-off-by: Andre Heider <a.heider@gmail.com>
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, 2 insertions, 1 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 ed47758f4f..b6f24b1aab 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 @@ -1,5 +1,6 @@ 'use strict'; 'require baseclass'; +'require network'; 'require rpc'; var callDSLMetrics = rpc.declare({ @@ -44,7 +45,7 @@ return baseclass.extend({ title: _('DSL'), load: function() { - if (!L.hasSystemFeature('dsl')) + if (!network.getDSLModemType()) return Promise.reject(); return L.resolveDefault(callDSLMetrics(), {}); |