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 <stangri@melmac.ca>
This commit is contained in:
Stan Grishin 2023-02-23 21:38:07 +00:00
parent a505bb1067
commit 0d4b675e70
3 changed files with 6 additions and 2 deletions

View file

@ -5,13 +5,15 @@ include $(TOPDIR)/rules.mk
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
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

View file

@ -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()]);
})

View file

@ -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 ""