diff options
Diffstat (limited to 'app/assets/javascripts/boards/components/board_filtered_search.vue')
-rw-r--r-- | app/assets/javascripts/boards/components/board_filtered_search.vue | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/assets/javascripts/boards/components/board_filtered_search.vue b/app/assets/javascripts/boards/components/board_filtered_search.vue index 6fa5f018875..f66bc7887dc 100644 --- a/app/assets/javascripts/boards/components/board_filtered_search.vue +++ b/app/assets/javascripts/boards/components/board_filtered_search.vue @@ -44,6 +44,7 @@ export default { weight, epicId, myReactionEmoji, + releaseTag, } = this.filterParams; const filteredSearchValue = []; @@ -105,6 +106,13 @@ export default { }); } + if (releaseTag) { + filteredSearchValue.push({ + type: 'release', + value: { data: releaseTag, operator: '=' }, + }); + } + if (epicId) { filteredSearchValue.push({ type: 'epic_id', @@ -177,6 +185,13 @@ export default { }); } + if (this.filterParams['not[releaseTag]']) { + filteredSearchValue.push({ + type: 'release', + value: { data: this.filterParams['not[releaseTag]'], operator: '!=' }, + }); + } + if (search) { filteredSearchValue.push(search); } @@ -195,6 +210,7 @@ export default { epicId, myReactionEmoji, iterationId, + releaseTag, } = this.filterParams; let notParams = {}; @@ -210,6 +226,7 @@ export default { 'not[epic_id]': this.filterParams.not.epicId, 'not[my_reaction_emoji]': this.filterParams.not.myReactionEmoji, 'not[iteration_id]': this.filterParams.not.iterationId, + 'not[release_tag]': this.filterParams.not.releaseTag, }, undefined, ); @@ -227,6 +244,7 @@ export default { weight, epic_id: getIdFromGraphQLId(epicId), my_reaction_emoji: myReactionEmoji, + release_tag: releaseTag, }; }, }, @@ -290,6 +308,9 @@ export default { case 'my_reaction_emoji': filterParams.myReactionEmoji = filter.value.data; break; + case 'release': + filterParams.releaseTag = filter.value.data; + break; case 'filtered-search-term': if (filter.value.data) plainText.push(filter.value.data); break; |