From ccc87d9aa0d90e536a73f72488679f0536b30477 Mon Sep 17 00:00:00 2001 From: Ivan K Date: Mon, 24 Feb 2025 16:23:05 +0300 Subject: [PATCH] feat: update network interface loading in podkop.js --- .../htdocs/luci-static/resources/view/podkop/podkop.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js index d63ecc6..4b2a0e9 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js @@ -225,7 +225,11 @@ function createConfigSection(section, map, network) { o = s.taboption('basic', form.ListValue, 'interface', _('Network Interface'), _('Select network interface for VPN connection')); o.depends('mode', 'vpn'); o.ucisection = s.section; - getNetworkInterfaces(o); + o.load = function (section_id) { + return getNetworkInterfaces(this).then(() => { + return this.super('load', section_id); + }); + }; o = s.taboption('basic', form.Flag, 'domain_list_enabled', _('Community Lists')); o.default = '0';