mirror of https://github.com/openwrt/luci.git
luci-mod-system: add missing require to `none` led trigger class
Also convert ES6 to ES5 syntax while we're at it.
Fixes: #5476
Fixes: 5b42cd5b46
("luci-mod-system: move default option from defaul-on trigger to none trigger")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
pull/6671/head
parent
30e32071c3
commit
fceabd7446
|
@ -1,12 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return baseclass.extend({
|
||||
trigger: _('Always on (kernel: default-on)'),
|
||||
description: _('The LED is always in default state on.'),
|
||||
kernel: true,
|
||||
addFormOptions(s){
|
||||
var o;
|
||||
}
|
||||
addFormOptions: function(s) {}
|
||||
});
|
||||
|
|
|
@ -6,7 +6,5 @@ return baseclass.extend({
|
|||
description: _('The LED flashes to simulate actual heart beat.') +
|
||||
_('The frequency is in direct proportion to 1-minute average CPU load.'),
|
||||
kernel: true,
|
||||
addFormOptions(s){
|
||||
var o;
|
||||
}
|
||||
addFormOptions: function(s) {}
|
||||
});
|
||||
|
|
|
@ -7,7 +7,7 @@ return baseclass.extend({
|
|||
trigger: _("Network device activity (kernel: netdev)"),
|
||||
description: _('The LED flashes with link status and activity on the configured interface.'),
|
||||
kernel: true,
|
||||
addFormOptions(s){
|
||||
addFormOptions: function(s) {
|
||||
var o;
|
||||
|
||||
o = s.option(widgets.DeviceSelect, '_net_dev', _('Device'));
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
'use strict';
|
||||
'require form';
|
||||
'require baseclass';
|
||||
|
||||
return baseclass.extend({
|
||||
trigger: _('Always off (kernel: none)'),
|
||||
description: _('The LED is always in default state off.'),
|
||||
kernel: true,
|
||||
addFormOptions(s){
|
||||
addFormOptions: function(s) {
|
||||
var o;
|
||||
|
||||
o = s.option(form.Flag, 'default', _('Default state'));
|
||||
|
|
|
@ -6,7 +6,7 @@ return baseclass.extend({
|
|||
trigger: _('Custom flash interval (kernel: timer)'),
|
||||
description: _('The LED blinks with the configured on/off frequency'),
|
||||
kernel: true,
|
||||
addFormOptions(s){
|
||||
addFormOptions: function(s) {
|
||||
var o;
|
||||
|
||||
o = s.option(form.Value, 'delayon', _('On-State Delay'),
|
||||
|
|
Loading…
Reference in New Issue