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