From 32ee1873ac89f2bd510d8982d702e127fc19d39b Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Wed, 8 Aug 2018 20:46:02 +0200 Subject: luci-base: fix misleading warning message when adding SSH keys Prevent an incorrect / misleading "There are no changes to apply" message from popping up when adding a new SSH key to the text box. Fixes #2048. Signed-off-by: Dirk Brenken [reword commit message] Signed-off-by: Jo-Philipp Wich --- modules/luci-mod-system/luasrc/model/cbi/admin_system/admin.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/luci-mod-system/luasrc/model/cbi/admin_system/admin.lua') diff --git a/modules/luci-mod-system/luasrc/model/cbi/admin_system/admin.lua b/modules/luci-mod-system/luasrc/model/cbi/admin_system/admin.lua index 6c1c1235c5..34289533bf 100644 --- a/modules/luci-mod-system/luasrc/model/cbi/admin_system/admin.lua +++ b/modules/luci-mod-system/luasrc/model/cbi/admin_system/admin.lua @@ -6,6 +6,7 @@ local fs = require "nixio.fs" m = Map("system", translate("Router Password"), translate("Changes the administrator password for accessing the device")) +m.apply_on_parse = true s = m:section(TypedSection, "_dummy", "") s.addremove = false @@ -45,6 +46,7 @@ if fs.access("/etc/config/dropbear") then m2 = Map("dropbear", translate("SSH Access"), translate("Dropbear offers SSH network shell access and an integrated SCP server")) +m2.apply_on_parse = true s = m2:section(TypedSection, "dropbear", translate("Dropbear Instance")) s.anonymous = true -- cgit v1.2.3