diff options
author | Dirk Brenken <dev@brenken.org> | 2018-08-08 20:46:02 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-09-29 14:53:29 +0200 |
commit | 32ee1873ac89f2bd510d8982d702e127fc19d39b (patch) | |
tree | 9c41210d453dcaa978063eebe5d0d4cc9ed8a4b9 /modules/luci-mod-system/luasrc/model/cbi | |
parent | c3f5c01d6a17c186a56b3cc89eaac7f0a0777ffb (diff) |
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 <dev@brenken.org>
[reword commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/luasrc/model/cbi')
-rw-r--r-- | modules/luci-mod-system/luasrc/model/cbi/admin_system/admin.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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 <abbr title=\"Secure Shell\">SSH</abbr> network shell access and an integrated <abbr title=\"Secure Copy\">SCP</abbr> server")) +m2.apply_on_parse = true s = m2:section(TypedSection, "dropbear", translate("Dropbear Instance")) s.anonymous = true |