luci-app-travelmate: sync with travelmate 1.3.0 2253/head
authorDirk Brenken <dev@brenken.org>
Tue, 30 Oct 2018 14:29:00 +0000 (15:29 +0100)
committerDirk Brenken <dev@brenken.org>
Tue, 30 Oct 2018 14:30:58 +0000 (15:30 +0100)
* add support for the new 'trm_proactive' option

Signed-off-by: Dirk Brenken <dev@brenken.org>
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua

index 9ba4cf3bf2f9df332c69c6c3a9c58eeca289ad8d..e98cde719c317bdb3036bbdd42ebe85d0f83e84a 100644 (file)
@@ -65,18 +65,23 @@ o2 = s:option(Flag, "trm_captive", translate("Captive Portal Detection"),
 o2.default = o2.enabled
 o2.rmempty = false
 
-o3 = s:option(ListValue, "trm_iface", translate("Uplink / Trigger interface"),
+o3 = s:option(Flag, "trm_proactive", translate("ProActive Uplink Switch"),
+       translate("Proactively scan and switch to a higher prioritized uplink, despite of an already existing connection."))
+o3.default = o3.enabled
+o3.rmempty = false
+
+o4 = s:option(ListValue, "trm_iface", translate("Uplink / Trigger interface"),
        translate("Name of the used uplink interface."))
 if dump then
        local i, v
        for i, v in ipairs(dump.interface) do
                if v.interface ~= "loopback" and v.interface ~= "lan" then
-                       o3:value(v.interface)
+                       o4:value(v.interface)
                end
        end
 end
-o3.default = trmiface
-o3.rmempty = false
+o4.default = trmiface
+o4.rmempty = false
 
 -- Runtime information