summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-ledtrig-switch/htdocs/luci-static/resources/view/system/led-trigger/switch1.js
blob: 08b7edc79f7169b97251a3c7f9aaebc320b187e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'use strict';
'require baseclass';
'require form';

return baseclass.extend({
	trigger: _('Switch support (kernel: switch1)'),
	kernel: true,
	addFormOptions(s){
		let o;

		o = s.option(form.Value, 'port_mask', _('Switch Port Mask'));
		o.modalonly = true;
		o.depends('trigger', 'switch1');

		o = s.option(form.Value, 'speed_mask', _('Switch Speed Mask'));
		o.modalonly = true;
		o.depends('trigger', 'switch1');
	}
});