Skip to content

Commit

Permalink
fix(client): add back unique check for routing node
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
  • Loading branch information
1715173329 committed Jan 4, 2025
1 parent fda4891 commit 5a45d91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/luci-static/resources/homeproxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ return baseclass.extend({
if (section_id) {
if (!value)
return _('Expecting: %s').format(_('non-empty value'));
if (ucioption === 'node' && value === 'urltest')
return true;

var duplicate = false;
uci.sections(uciconfig, ucisection, (res) => {
Expand Down
1 change: 1 addition & 0 deletions htdocs/luci-static/resources/view/homeproxy/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ return view.extend({
so.value('urltest', _('URLTest'));
for (var i in proxy_nodes)
so.value(i, proxy_nodes[i]);
so.validate = L.bind(hp.validateUniqueValue, this, data[0], 'routing_node', 'node');
so.editable = true;

so = ss.option(form.ListValue, 'domain_strategy', _('Domain strategy'),
Expand Down

0 comments on commit 5a45d91

Please sign in to comment.