luci-mod-system: add config option to invert heartbeat trigger
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
bb9476cb94
commit
d4330a53ee
1 changed files with 10 additions and 1 deletions
|
@ -1,10 +1,19 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
'require baseclass';
|
'require baseclass';
|
||||||
|
'require form';
|
||||||
|
|
||||||
return baseclass.extend({
|
return baseclass.extend({
|
||||||
trigger: _('Heartbeat interval (kernel: heartbeat)'),
|
trigger: _('Heartbeat interval (kernel: heartbeat)'),
|
||||||
description: _('The LED flashes to simulate actual heart beat.') +
|
description: _('The LED flashes to simulate actual heart beat.') +
|
||||||
_('The frequency is in direct proportion to 1-minute average CPU load.'),
|
_('The frequency is in direct proportion to 1-minute average CPU load.'),
|
||||||
kernel: true,
|
kernel: true,
|
||||||
addFormOptions: function(s) {}
|
addFormOptions: function(s) {
|
||||||
|
var o;
|
||||||
|
|
||||||
|
o = s.option(form.Flag, 'inverted', _('Invert blinking'),
|
||||||
|
_('When inverted, the LED is continuously lit and flickers instead of it being off by default and blinking on system activity.'));
|
||||||
|
o.rmempty = true;
|
||||||
|
o.modalonly = true;
|
||||||
|
o.depends('trigger', 'heartbeat');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue