From: Dirk Brenken Date: Wed, 8 Aug 2018 18:46:02 +0000 (+0200) Subject: luci-base: fix misleading warning message when adding SSH keys X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=32ee1873ac89f2bd510d8982d702e127fc19d39b;p=oweals%2Fluci.git 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 --- 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 6c1c1235c..34289533b 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