aligned instance filter

This commit is contained in:
Peter Olu 2022-05-12 11:07:43 +01:00
parent 91a0c2979b
commit 631160750e
2 changed files with 5 additions and 6 deletions

View File

@ -34,7 +34,7 @@ limitations under the License. -->
</el-tooltip>
</div>
</div>
<div class="flex-h items-center row">
<div class="flex-h items-center">
<div class="flex-h items-center" v-if="currentSearchTerm === 'service'">
<div
class="mr-5 flex-h items-center"
@ -54,7 +54,7 @@ limitations under the License. -->
<div class="flex-h items-center" v-if="currentSearchTerm === 'instance'">
<div
class="mr-5 flex-h"
class="mr-5 items-center flex-h"
v-if="
dashboardStore.entity !== EntityType[3].value &&
currentSearchTerm === 'instance'

View File

@ -99,7 +99,7 @@ limitations under the License. -->
<el-input size="small" class="inputs mr-5" v-model="minTraceDuration" />
<span class="grey mr-5">-</span>
<el-input size="small" class="inputs" v-model="maxTraceDuration" />
</div>
</div>
<keep-alive>
<ConditionTags
v-if="activeFilter === 'tags'"
@ -209,7 +209,7 @@ const state = reactive<any>({
service: { value: "", label: "" },
});
const tagComponent = ref<InstanceType<typeof ConditionTags> | null>(null)
const tagComponent = ref<InstanceType<typeof ConditionTags> | null>(null);
// const dateTime = computed(() => [
// appStore.durationRow.start,
@ -282,7 +282,7 @@ function cancelSearch() {
tagsList.value = [];
tagsMap.value = [];
updateTags({ tagsMap: [], tagsList: [] });
tagComponent.value?.emptyTags()
tagComponent.value?.emptyTags();
break;
case "traceId":
traceId.value = "";
@ -364,7 +364,6 @@ function changeField(type: string, opt: any) {
}
}
function updateTags(data: { tagsMap: Array<Option>; tagsList: string[] }) {
console.log(data, tagComponent.value)
tagsList.value = data.tagsList;
tagsMap.value = data.tagsMap;
}