luci-mod-status: disable DSL status if not present
Fixes: #5465
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0ad54e4a7c
)
This commit is contained in:
parent
c051cfc4e8
commit
d1255a5f5e
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,9 @@ return baseclass.extend({
|
||||||
title: _('DSL'),
|
title: _('DSL'),
|
||||||
|
|
||||||
load: function() {
|
load: function() {
|
||||||
|
if (!L.hasSystemFeature('dsl'))
|
||||||
|
return Promise.reject();
|
||||||
|
|
||||||
return L.resolveDefault(callDSLMetrics(), {});
|
return L.resolveDefault(callDSLMetrics(), {});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue