mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-15 09:48:43 +00:00
show multiple active filter
This commit is contained in:
parent
61622936f5
commit
2b1ad1feaa
@ -309,9 +309,15 @@ async function getInstances(id?: string) {
|
|||||||
}
|
}
|
||||||
state.instance = logStore.instances[0];
|
state.instance = logStore.instances[0];
|
||||||
}
|
}
|
||||||
function searchLogs() {
|
function addToActiveTerms(){
|
||||||
activeTerms.value.push(currentSearchTerm.value);
|
activeTerms.value.push(currentSearchTerm.value);
|
||||||
console.log(activeTerms.value);
|
}
|
||||||
|
function removeFromActiveTerms(){
|
||||||
|
activeTerms.value = activeTerms.value.filter(term => term !== currentSearchTerm.value );
|
||||||
|
}
|
||||||
|
function searchLogs() {
|
||||||
|
addToActiveTerms()
|
||||||
|
currentSearchTerm.value = ""
|
||||||
let endpoint = "",
|
let endpoint = "",
|
||||||
instance = "";
|
instance = "";
|
||||||
if (dashboardStore.entity === EntityType[2].value) {
|
if (dashboardStore.entity === EntityType[2].value) {
|
||||||
@ -398,6 +404,7 @@ function setSearchTerm(term: string) {
|
|||||||
currentSearchTerm.value = term;
|
currentSearchTerm.value = term;
|
||||||
}
|
}
|
||||||
function cancelSearchTerm() {
|
function cancelSearchTerm() {
|
||||||
|
removeFromActiveTerms()
|
||||||
currentSearchTerm.value = "";
|
currentSearchTerm.value = "";
|
||||||
}
|
}
|
||||||
watch(
|
watch(
|
||||||
|
Loading…
Reference in New Issue
Block a user