included other cancel conditions such as tags

This commit is contained in:
Peter Olu 2022-05-11 23:35:46 +01:00
parent 7f2851e8f2
commit 8e33b3320c

View File

@ -94,11 +94,13 @@ limitations under the License. -->
<span class="grey mr-5">-</span>
<el-input size="small" class="inputs" v-model="maxTraceDuration" />
</div>
<ConditionTags
v-if="activeFilter === 'tags'"
:type="'TRACE'"
@update="updateTags"
/>
<keep-alive>
<ConditionTags
v-if="activeFilter === 'tags'"
:type="'TRACE'"
@update="updateTags"
/>
</keep-alive>
<el-button
v-if="activeFilter"
class="search-btn filter-btn"
@ -258,6 +260,17 @@ function cancelSearch() {
case "service":
state.service.value = "";
break
case "duration":
minTraceDuration.value = "";
maxTraceDuration.value = "";
break
case "tags":
tagsList.value = []
tagsMap.value = []
break
case "traceId":
traceId.value = ""
break
}
activeFilter.value = "";
traceStore.activeFilter = "";