Skip to content

Commit

Permalink
feat(client): Add group name prefix for nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
muink committed Dec 1, 2023
1 parent 74ca85e commit a8dfbc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion htdocs/luci-static/resources/view/homeproxy/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ return view.extend({
var proxy_nodes = {};
uci.sections(data[0], 'node', (res) => {
proxy_nodes[res['.name']] =
String.format('[%s] %s', res.type, res.label || (stubValidator.apply('ip6addr', res.address || '') ?
String.format('%s [%s] %s', res.grouphash ?
String.format('[%s]', subs_info[res.grouphash]?.name || (subs_info[res.grouphash]?.order ?
_('Group ') + subs_info[res.grouphash].order : res.grouphash)) : '',
res.type, res.label || (stubValidator.apply('ip6addr', res.address || '') ?
String.format('[%s]', res.address) : res.address) + ':' + res.port);
});

Expand Down

0 comments on commit a8dfbc4

Please sign in to comment.