Skip to content

Commit

Permalink
luci-app-smartdns: Fix The list has multiple headers.
Browse files Browse the repository at this point in the history
Signed-off-by: FanxJK <[email protected]>
  • Loading branch information
FanxJK committed Feb 2, 2024
1 parent faf6c4f commit f77310c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,21 +639,21 @@ return view.extend({
s.tab('advanced', _('Advanced Settings'));

// enable flag;
o = s.taboption("general", form.Flag, "enabled", _("Enable"), _("Enable"));
o = s.taboption("general", form.Flag, "enabled", _("Enable"));
o.rmempty = false;
o.default = o.enabled;
o.editable = true;

// name;
o = s.taboption("general", form.Value, "name", _("DNS Server Name"), _("DNS Server Name"));
o = s.taboption("general", form.Value, "name", _("DNS Server Name"));

// IP address;
o = s.taboption("general", form.Value, "ip", _("ip"), _("DNS Server ip"));
o = s.taboption("general", form.Value, "ip", _("DNS Server ip"));
o.datatype = "or(ipaddr, string)";
o.rmempty = false;

// port;
o = s.taboption("general", form.Value, "port", _("port"), _("DNS Server port"));
o = s.taboption("general", form.Value, "port", _("DNS Server port"));
o.placeholder = "default";
o.datatype = "port";
o.rempty = true;
Expand All @@ -662,7 +662,7 @@ return view.extend({
o.depends("type", "tls");

// type;
o = s.taboption("general", form.ListValue, "type", _("type"), _("DNS Server type"));
o = s.taboption("general", form.ListValue, "type", _("DNS Server type"));
o.placeholder = "udp";
o.value("udp", _("udp"));
o.value("tcp", _("tcp"));
Expand All @@ -672,7 +672,7 @@ return view.extend({
o.rempty = false;

// server group
o = s.taboption("general", form.Value, "server_group", _("Server Group"), _("DNS Server group"))
o = s.taboption("general", form.Value, "server_group", _("DNS Server group"))
o.rmempty = true;
o.placeholder = "default";
o.datatype = "hostname";
Expand Down

0 comments on commit f77310c

Please sign in to comment.