0
0
mirror of https://github.com/openwrt/luci.git synced 2025-01-18 19:32:08 +00:00
Florian Eckert be640ce110 luci-app-ledtrig-rssi: update trigger translation
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-05-04 12:02:39 +02:00

40 lines
949 B
JavaScript

'use strict';
'require baseclass';
'require form';
'require tools.widgets as widgets';
return baseclass.extend({
trigger: _('WiFi signal quality (service: rssileds)'),
kernel: false,
addFormOptions(s){
var o;
o = s.option(widgets.DeviceSelect, '_rssi_iface', _('Device'));
o.rmempty = true;
o.ucioption = 'iface';
o.modalonly = true;
o.noaliases = true;
o.depends('trigger', 'rssi');
o = s.option(form.Value, 'minq', _('Minimal quality'));
o.rmempty = true;
o.modalonly = true;
o.depends('trigger', 'rssi');
o = s.option(form.Value, 'maxq', _('Maximal quality'));
o.rmempty = true;
o.modalonly = true;
o.depends('trigger', 'rssi');
o = s.option(form.Value, 'offset', _('Value offset'));
o.rmempty = true;
o.modalonly = true;
o.depends('trigger', 'rssi');
o = s.option(form.Value, 'factor', _('Multiplication factor'));
o.rmempty = true;
o.modalonly = true;
o.depends('trigger', 'rssi');
}
});