mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
⚡ Enable tags selection (#1960)
This commit is contained in:
parent
1e551a202f
commit
a42bbf88f8
|
@ -32,7 +32,7 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div :key="scope.row.id">
|
<div :key="scope.row.id">
|
||||||
<span class="name">{{scope.row.name}}</span>
|
<span class="name">{{scope.row.name}}</span>
|
||||||
<TagsContainer class="hidden-sm-and-down" :tagIds="getIds(scope.row.tags)" :limit="3" />
|
<TagsContainer class="hidden-sm-and-down" :tagIds="getIds(scope.row.tags)" :limit="3" @click="onTagClick" :clickable="true" :hoverable="true" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -124,6 +124,11 @@ export default mixins(
|
||||||
updateTagsFilter(tags: string[]) {
|
updateTagsFilter(tags: string[]) {
|
||||||
this.filterTagIds = tags;
|
this.filterTagIds = tags;
|
||||||
},
|
},
|
||||||
|
onTagClick(tagId: string) {
|
||||||
|
if (tagId !== 'count' && !this.filterTagIds.includes(tagId)) {
|
||||||
|
this.filterTagIds.push(tagId);
|
||||||
|
}
|
||||||
|
},
|
||||||
async openWorkflow (data: IWorkflowShortResponse, column: any) { // tslint:disable-line:no-any
|
async openWorkflow (data: IWorkflowShortResponse, column: any) { // tslint:disable-line:no-any
|
||||||
if (column.label !== 'Active') {
|
if (column.label !== 'Active') {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue