From f0e41a4e84ad7ea09cbf32a3d87dfb4b1b1afda1 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Thu, 23 Feb 2023 21:38:07 +0000 Subject: [PATCH] luci-app-pbr: bugfixes * do not remove non-empty custom user files fields * add provides for vpnbypass and vpn-policy-routing luci apps addresses https://github.com/openwrt/luci/pull/6127#pullrequestreview-1311512052 Signed-off-by: Stan Grishin (cherry picked from commit 0d4b675e7062ddc0d1d2b9be2d0962186239c51b) --- applications/luci-app-pbr/Makefile | 4 +++- .../htdocs/luci-static/resources/view/pbr/overview.js | 2 ++ applications/luci-app-pbr/po/templates/pbr.pot | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/applications/luci-app-pbr/Makefile b/applications/luci-app-pbr/Makefile index 1d7eeeddab..e5f88c44dc 100644 --- a/applications/luci-app-pbr/Makefile +++ b/applications/luci-app-pbr/Makefile @@ -5,13 +5,15 @@ include $(TOPDIR)/rules.mk PKG_LICENSE:=GPL-3.0-or-later PKG_MAINTAINER:=Stan Grishin -PKG_VERSION:=1.0.1-10 +PKG_VERSION:=1.1.0-1 LUCI_TITLE:=Policy Based Routing Service Web UI LUCI_DESCRIPTION:=Provides Web UI for Policy Based Routing Service. LUCI_DEPENDS:=+luci-base +jsonfilter +pbr LUCI_PKGARCH:=all +PKG_PROVIDES:=luci-app-vpnbypass luci-app-vpn-policy-routing + include ../../luci.mk # call BuildPackage - OpenWrt buildroot signature diff --git a/applications/luci-app-pbr/htdocs/luci-static/resources/view/pbr/overview.js b/applications/luci-app-pbr/htdocs/luci-static/resources/view/pbr/overview.js index e2d9d7b9b2..5ddf263a1e 100644 --- a/applications/luci-app-pbr/htdocs/luci-static/resources/view/pbr/overview.js +++ b/applications/luci-app-pbr/htdocs/luci-static/resources/view/pbr/overview.js @@ -267,10 +267,12 @@ return view.extend({ o = s.option(form.Flag, "enabled", _("Enabled")); o.optional = false; o.editable = true; + o.rmempty = false; o = s.option(form.Value, "path", _("Path")); o.optional = false; o.editable = true; + o.rmempty = false; return Promise.all([status.render(), m.render()]); }) diff --git a/applications/luci-app-pbr/po/templates/pbr.pot b/applications/luci-app-pbr/po/templates/pbr.pot index f8959174e8..f8827ce543 100644 --- a/applications/luci-app-pbr/po/templates/pbr.pot +++ b/applications/luci-app-pbr/po/templates/pbr.pot @@ -240,7 +240,7 @@ msgstr "" msgid "Output verbosity" msgstr "" -#: applications/luci-app-pbr/htdocs/luci-static/resources/view/pbr/overview.js:271 +#: applications/luci-app-pbr/htdocs/luci-static/resources/view/pbr/overview.js:272 msgid "Path" msgstr "" -- 2.30.2