From ee93c26098fb841129088180c50ce9362223aa9d Mon Sep 17 00:00:00 2001 From: Andrey Petelin Date: Fri, 10 Oct 2025 19:55:22 +0500 Subject: [PATCH] fix: Use connection_type instead of mode for option dependencies in podkop section.js --- .../htdocs/luci-static/resources/view/podkop/section.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/section.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/section.js index 16fcd6c..d6e4a96 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/section.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/section.js @@ -26,7 +26,7 @@ function createSectionContent(section) { o.value('outbound', _('Outbound Config')); o.value('urltest', _('URLTest')); o.default = 'url'; - o.depends('mode', 'proxy'); + o.depends('connection_type', 'proxy'); o = section.option( form.TextValue, @@ -125,7 +125,7 @@ function createSectionContent(section) { _('Apply for SS2022'), ); o.default = '0'; - o.depends('mode', 'proxy'); + o.depends('connection_type', 'proxy'); o.rmempty = false; o = section.option( @@ -134,7 +134,7 @@ function createSectionContent(section) { _('Network Interface'), _('Select network interface for VPN connection'), ); - o.depends('mode', 'vpn'); + o.depends('connection_type', 'vpn'); o.noaliases = true; o.nobridges = false; o.noinactive = false; @@ -182,7 +182,7 @@ function createSectionContent(section) { ); o.default = '0'; o.rmempty = false; - o.depends('mode', 'vpn'); + o.depends('connection_type', 'vpn'); o = section.option( form.ListValue,