luci-mod-status: disable DSL status if not present
Fixes: #5465 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
d513f1461f
commit
0ad54e4a7c
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