luci-mod-system: add help text to the led-trigger timer

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2021-09-02 11:45:47 +02:00
parent be19a5bcdd
commit b5ea85b724

View file

@ -8,11 +8,15 @@ return baseclass.extend({
addFormOptions(s){
var o;
o = s.option(form.Value, 'delayon', _('On-State Delay'));
o = s.option(form.Value, 'delayon', _('On-State Delay'),
_('How long (in milliseconds) the LED should be on')
);
o.modalonly = true;
o.depends('trigger', 'timer');
o = s.option(form.Value, 'delayoff', _('Off-State Delay'));
o = s.option(form.Value, 'delayoff', _('Off-State Delay'),
_('How long (in milliseconds) the LED should be off')
);
o.modalonly = true;
o.depends('trigger', 'timer');
}