mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-23 14:46:49 +03:00
Added partial tag matching, #3136
This commit is contained in:
parent
02e8f747b8
commit
a9997541e5
@ -5480,7 +5480,7 @@
|
||||
// Tag filter
|
||||
for (var d in nodes) {
|
||||
if ((nodes[d].tags == null) && (tagSearch == '')) { r.push(d); }
|
||||
else if (nodes[d].tags != null) { for (var j in nodes[d].tags) { if (nodes[d].tags[j].toLowerCase() == tagSearch) { r.push(d); break; } }}
|
||||
else if (nodes[d].tags != null) { for (var j in nodes[d].tags) { if (nodes[d].tags[j].toLowerCase().indexOf(tagSearch) >= 0) { r.push(d); break; } }}
|
||||
}
|
||||
} else if (agentTagSearch != null) {
|
||||
// Agent Tag filter
|
||||
|
Loading…
Reference in New Issue
Block a user