mirror of
https://github.com/xiaorouji/openwrt-passwall2.git
synced 2025-05-01 05:41:01 +08:00
luci: optimize the backup and restore page
This commit is contained in:
parent
1c2a2f0909
commit
abadae8aae
@ -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",
|
||||
|
@ -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%>
|
||||
|
Loading…
Reference in New Issue
Block a user