summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/50_dsl.js8
1 files changed, 5 insertions, 3 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 b6f24b1aab..0ee0b9033a 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
@@ -45,10 +45,12 @@ return baseclass.extend({
title: _('DSL'),
load: function() {
- if (!network.getDSLModemType())
- return Promise.reject();
+ return network.getDSLModemType().then(function(type) {
+ if (!type)
+ return Promise.reject();
- return L.resolveDefault(callDSLMetrics(), {});
+ return L.resolveDefault(callDSLMetrics(), {});
+ });
},
render: function(dsl) {