mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 00:15:57 +00:00
feat(search): Enhance search by filtering by URLs
This commit is contained in:
parent
efdffca06c
commit
39da894598
1 changed files with 1 additions and 0 deletions
|
@ -327,6 +327,7 @@ export default {
|
||||||
const loweredSearchText = this.searchText.toLowerCase();
|
const loweredSearchText = this.searchText.toLowerCase();
|
||||||
searchTextMatch =
|
searchTextMatch =
|
||||||
monitor.name.toLowerCase().includes(loweredSearchText)
|
monitor.name.toLowerCase().includes(loweredSearchText)
|
||||||
|
|| monitor.url?.toLowerCase().includes(loweredSearchText)
|
||||||
|| monitor.tags.find(tag => tag.name.toLowerCase().includes(loweredSearchText)
|
|| monitor.tags.find(tag => tag.name.toLowerCase().includes(loweredSearchText)
|
||||||
|| tag.value?.toLowerCase().includes(loweredSearchText));
|
|| tag.value?.toLowerCase().includes(loweredSearchText));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue