Temporary disable tag selection on click

This commit is contained in:
Jan Oberhauser 2021-05-29 13:37:04 -05:00
parent 05eec87d1d
commit 8e793e27b3
2 changed files with 6 additions and 7 deletions

View file

@ -3,12 +3,11 @@
<template>
<span class="tags">
<span
v-for="tag in tags"
v-for="tag in tags"
:key="tag.id"
:class="{clickable: !tag.hidden}"
@click="(e) => onClick(e, tag)"
>
<el-tag
<el-tag
:title="tag.title"
type="info"
size="small"
@ -23,7 +22,7 @@
:enabled="responsive"
v-else
>
<el-tag
<el-tag
:title="tag.name"
type="info"
size="small"
@ -127,7 +126,7 @@ export default Vue.extend({
}
.tags {
display: flex;
display: flex;
> span {
padding-right: 4px; // why not margin? for space between tags to be clickable

View file

@ -9,7 +9,7 @@
<h1>Open Workflow</h1>
</div>
<div class="tags-filter">
<TagsDropdown
<TagsDropdown
placeholder="Filter by tags..."
:currentTagIds="filterTagIds"
:createEnabled="false"
@ -32,7 +32,7 @@
<template slot-scope="scope">
<div :key="scope.row.id">
<span class="name">{{scope.row.name}}</span>
<TagsContainer class="hidden-sm-and-down" :tagIds="getIds(scope.row.tags)" :limit="3" @click="onTagClick" :hoverable="true"/>
<TagsContainer class="hidden-sm-and-down" :tagIds="getIds(scope.row.tags)" :limit="3" @click="onTagClick" />
</div>
</template>
</el-table-column>