mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-30 22:32:49 +03:00
fix: Use connection_type instead of mode for option dependencies in podkop section.js
This commit is contained in:
@@ -26,7 +26,7 @@ function createSectionContent(section) {
|
|||||||
o.value('outbound', _('Outbound Config'));
|
o.value('outbound', _('Outbound Config'));
|
||||||
o.value('urltest', _('URLTest'));
|
o.value('urltest', _('URLTest'));
|
||||||
o.default = 'url';
|
o.default = 'url';
|
||||||
o.depends('mode', 'proxy');
|
o.depends('connection_type', 'proxy');
|
||||||
|
|
||||||
o = section.option(
|
o = section.option(
|
||||||
form.TextValue,
|
form.TextValue,
|
||||||
@@ -125,7 +125,7 @@ function createSectionContent(section) {
|
|||||||
_('Apply for SS2022'),
|
_('Apply for SS2022'),
|
||||||
);
|
);
|
||||||
o.default = '0';
|
o.default = '0';
|
||||||
o.depends('mode', 'proxy');
|
o.depends('connection_type', 'proxy');
|
||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
|
|
||||||
o = section.option(
|
o = section.option(
|
||||||
@@ -134,7 +134,7 @@ function createSectionContent(section) {
|
|||||||
_('Network Interface'),
|
_('Network Interface'),
|
||||||
_('Select network interface for VPN connection'),
|
_('Select network interface for VPN connection'),
|
||||||
);
|
);
|
||||||
o.depends('mode', 'vpn');
|
o.depends('connection_type', 'vpn');
|
||||||
o.noaliases = true;
|
o.noaliases = true;
|
||||||
o.nobridges = false;
|
o.nobridges = false;
|
||||||
o.noinactive = false;
|
o.noinactive = false;
|
||||||
@@ -182,7 +182,7 @@ function createSectionContent(section) {
|
|||||||
);
|
);
|
||||||
o.default = '0';
|
o.default = '0';
|
||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
o.depends('mode', 'vpn');
|
o.depends('connection_type', 'vpn');
|
||||||
|
|
||||||
o = section.option(
|
o = section.option(
|
||||||
form.ListValue,
|
form.ListValue,
|
||||||
|
|||||||
Reference in New Issue
Block a user