mirror of
https://github.com/openwrt/luci.git
synced 2025-04-09 20:54:36 +00:00
20 lines
613 B
JavaScript
20 lines
613 B
JavaScript
'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) {
|
|
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');
|
|
}
|
|
});
|