luci: fix warning when save config

This commit is contained in:
Nick Peng
2022-08-30 00:18:11 +08:00
parent 455924befe
commit 0eef67c119

View File

@@ -164,10 +164,9 @@ return L.view.extend({
s.tab("seconddns", _("Second Server Settings"));
s.tab("custom", _("Custom Settings"));
// Eanble;
o = s.taboption("settings", form.Flag, "enabled", _("Enable"), _("Enable or disable smartdns server"));
o.rmempty = false;
o.default = o.disabled;
o.rempty = false;
// server name;
o = s.taboption("settings", form.Value, "server_name", _("Server Name"), _("Smartdns server name"));