luci: optimize the backup and restore page

This commit is contained in:
lwb1978 2025-01-05 12:44:17 +08:00 committed by xiaorouji
parent 1c2a2f0909
commit abadae8aae
2 changed files with 2 additions and 4 deletions

View File

@ -16,9 +16,9 @@ s = fb:section(SimpleSection, translate("Backup and Restore"), translate("Backup
"<br><font color='red'>" ..
translate("Note: Restoring configurations across different versions may cause compatibility issues.") ..
"</font>")
o = s:option(DummyValue, '', nil)
o.template = appname .. "/log/backup_restore"
s.anonymous = true
s:append(Template(appname .. "/log/backup_restore"))
local backup_files = {
"/etc/config/passwall2",

View File

@ -2,7 +2,6 @@
local api = require "luci.passwall2.api"
-%>
<%+cbi/valueheader%>
<div class="cbi-value" id="_backup_div">
<label class="cbi-value-title"><%:Create Backup File%></label>
<div class="cbi-value-field">
@ -131,4 +130,3 @@ local api = require "luci.passwall2.api"
}
}
</script>
<%+cbi/valuefooter%>