diff options
author | Florian Eckert <fe@dev.tdt.de> | 2019-08-09 14:46:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-09 14:46:29 +0200 |
commit | 15e95260896220072bd43225229722f313b6b9e1 (patch) | |
tree | 567b19a3df67ff36a82881b6d1a6ffee2d705349 /applications/luci-app-openvpn/luasrc/model | |
parent | b11a25dcb954093fd44f3ce69c9673a748acbb1e (diff) | |
parent | 7af8043a75ccf49c3e976984a4b10812e25d115f (diff) |
Merge pull request #2969 from TDT-AG/pr/20190806-luci-base
luci-base: add new VPN toplevel menu entry
Diffstat (limited to 'applications/luci-app-openvpn/luasrc/model')
3 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua index 18b106c32e..1971400b80 100644 --- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua +++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua @@ -800,7 +800,7 @@ local cts = { } local params = { } local m = Map("openvpn") -m.redirect = luci.dispatcher.build_url("admin", "services", "openvpn") +m.redirect = luci.dispatcher.build_url("admin", "vpn", "openvpn") m.apply_on_parse = true local p = m:section( SimpleSection ) diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua index 132c4d8f99..86a76d5c8d 100644 --- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua +++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua @@ -95,7 +95,7 @@ local basicParams = { local m = Map("openvpn") -m.redirect = luci.dispatcher.build_url("admin", "services", "openvpn") +m.redirect = luci.dispatcher.build_url("admin", "vpn", "openvpn") m.apply_on_parse = true local p = m:section( SimpleSection ) diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua index 41266d860e..9164f7f600 100644 --- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua +++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua @@ -18,9 +18,9 @@ local cfg = s:option(DummyValue, "config") function cfg.cfgvalue(self, section) local file_cfg = self.map:get(section, "config") if file_cfg then - s.extedit = luci.dispatcher.build_url("admin", "services", "openvpn", "file", "%s") + s.extedit = luci.dispatcher.build_url("admin", "vpn", "openvpn", "file", "%s") else - s.extedit = luci.dispatcher.build_url("admin", "services", "openvpn", "basic", "%s") + s.extedit = luci.dispatcher.build_url("admin", "vpn", "openvpn", "basic", "%s") end end @@ -117,7 +117,7 @@ end local updown = s:option( Button, "_updown", translate("Start/Stop") ) updown._state = false updown.redirect = luci.dispatcher.build_url( - "admin", "services", "openvpn" + "admin", "vpn", "openvpn" ) function updown.cbid(self, section) local pid = s.getPID(section) |