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>
This commit is contained in:
parent
c3f5c01d6a
commit
32ee1873ac
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue