mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +00:00
Add Proxy/VPN status report via Led
This commit is contained in:
parent
b0c5e22d34
commit
8eb8b22a56
2 changed files with 36 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return baseclass.extend({
|
||||
trigger: _('Proxy status (service: proxy)'),
|
||||
kernel: false,
|
||||
addFormOptions: function(s){
|
||||
var o;
|
||||
|
||||
o = s.option(form.ListValue, 'proxy_status', _('Proxy Status'));
|
||||
o.rmempty = true;
|
||||
o.modalonly = true;
|
||||
o.value('up', _('Up'));
|
||||
o.value('down', _('Down'));
|
||||
o.depends('trigger','proxy');
|
||||
}
|
||||
});
|
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return baseclass.extend({
|
||||
trigger: _('VPN status (service: vpn)'),
|
||||
kernel: false,
|
||||
addFormOptions: function(s){
|
||||
var o;
|
||||
|
||||
o = s.option(form.ListValue, 'vpn_status', _('VPN Status'));
|
||||
o.rmempty = true;
|
||||
o.modalonly = true;
|
||||
o.value('up', _('Up'));
|
||||
o.value('down', _('Down'));
|
||||
o.depends('trigger','vpn');
|
||||
}
|
||||
});
|
Loading…
Reference in a new issue