Merge pull request #5923 from TDT-AG/pr/20220803-luci-mod-system

luci-mod-system: add config option to invert heartbeat trigger
This commit is contained in:
Florian Eckert 2022-08-08 08:45:20 +02:00 committed by GitHub
commit 1a3a1c6522
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,19 @@
'use strict';
'require baseclass';
'require form';
return baseclass.extend({
trigger: _('Heartbeat interval (kernel: heartbeat)'),
description: _('The LED flashes to simulate actual heart beat.') +
_('The frequency is in direct proportion to 1-minute average CPU load.'),
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');
}
});