mirror of
https://github.com/openwrt/luci.git
synced 2026-06-18 16:52:12 +04:00
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>
This commit is contained in:
@@ -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(), {});
|
||||
|
||||
Reference in New Issue
Block a user