luci-app-openvpn: On apply/save redirect to OpenVPN overview page

This change will redirect on apply/save to the OpenVPN overview page.
This is the default behaviour on LuCI.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2018-11-21 13:15:29 +01:00
parent 9881ad5a6b
commit 1986dc2751
2 changed files with 4 additions and 5 deletions

View file

@ -703,10 +703,10 @@ local cts = { }
local params = { }
local m = Map("openvpn")
local p = m:section( SimpleSection )
m.redirect = luci.dispatcher.build_url("admin", "services", "openvpn")
m.apply_on_parse = true
local p = m:section( SimpleSection )
p.template = "openvpn/pageswitch"
p.mode = "advanced"
p.instance = arg[1]

View file

@ -95,11 +95,10 @@ local basicParams = {
local m = Map("openvpn")
local p = m:section( SimpleSection )
m.redirect = luci.dispatcher.build_url("admin", "services", "openvpn")
m.apply_on_parse = true
local p = m:section( SimpleSection )
p.template = "openvpn/pageswitch"
p.mode = "basic"
p.instance = arg[1]