feat(search): Enhance search by filtering with hostname and dns_resolve_server

This commit is contained in:
Ionys 2024-12-14 22:51:19 +01:00
parent 39da894598
commit 08a45637c8

View file

@ -328,6 +328,8 @@ export default {
searchTextMatch =
monitor.name.toLowerCase().includes(loweredSearchText)
|| monitor.url?.toLowerCase().includes(loweredSearchText)
|| monitor.hostname?.toLowerCase().includes(loweredSearchText)
|| monitor.dns_resolve_server?.toLowerCase().includes(loweredSearchText)
|| monitor.tags.find(tag => tag.name.toLowerCase().includes(loweredSearchText)
|| tag.value?.toLowerCase().includes(loweredSearchText));
}