From 36a59d088eca61b834191dacea009677a96c052f Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 19 May 2022 07:33:21 +0000 Subject: Add latest changes from gitlab-org/gitlab@15-0-stable-ee --- .../components/board_add_new_column_form.vue | 26 ++++++++------------- .../boards/components/board_card_inner.vue | 21 +++++++++++++---- .../boards/components/board_content.vue | 5 ++-- .../boards/components/board_filtered_search.vue | 15 +++++++++++- .../javascripts/boards/components/board_form.vue | 1 + .../javascripts/boards/components/board_list.vue | 2 +- .../boards/components/board_list_header.vue | 27 ++-------------------- .../boards/components/board_settings_sidebar.vue | 8 +++---- .../boards/components/board_top_bar.vue | 4 ++-- .../boards/components/config_toggle.vue | 4 +++- .../boards/components/project_select.vue | 7 +++++- .../components/sidebar/board_sidebar_title.vue | 2 +- .../graphql/board_list_create.mutation.graphql | 2 -- .../graphql/board_list_destroy.mutation.graphql | 2 +- .../graphql/board_list_update.mutation.graphql | 4 +--- .../boards/graphql/board_lists.query.graphql | 6 +---- .../graphql/board_lists_deferred.query.graphql | 2 +- .../boards/graphql/group_board.query.graphql | 2 +- .../graphql/issue_move_list.mutation.graphql | 2 +- .../boards/graphql/lists_issues.query.graphql | 4 ++-- .../boards/graphql/project_board.query.graphql | 2 +- app/assets/javascripts/boards/index.js | 1 - app/assets/javascripts/boards/stores/actions.js | 5 ++-- app/assets/javascripts/boards/stores/getters.js | 14 +++++++++++ 24 files changed, 88 insertions(+), 80 deletions(-) (limited to 'app/assets/javascripts/boards') diff --git a/app/assets/javascripts/boards/components/board_add_new_column_form.vue b/app/assets/javascripts/boards/components/board_add_new_column_form.vue index 70ba90bb1d4..10c7a3db2d3 100644 --- a/app/assets/javascripts/boards/components/board_add_new_column_form.vue +++ b/app/assets/javascripts/boards/components/board_add_new_column_form.vue @@ -80,17 +80,14 @@ export default { @@ -242,7 +253,7 @@ export default {
- + - + diff --git a/app/assets/javascripts/boards/components/board_filtered_search.vue b/app/assets/javascripts/boards/components/board_filtered_search.vue index aeb2cee590d..fa0c798ca9d 100644 --- a/app/assets/javascripts/boards/components/board_filtered_search.vue +++ b/app/assets/javascripts/boards/components/board_filtered_search.vue @@ -2,7 +2,8 @@ import { pickBy, isEmpty, mapValues } from 'lodash'; import { mapActions } from 'vuex'; import { getIdFromGraphQLId, isGid } from '~/graphql_shared/utils'; -import { updateHistory, setUrlParams } from '~/lib/utils/url_utility'; +import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; +import { updateHistory, setUrlParams, queryToObject } from '~/lib/utils/url_utility'; import { __ } from '~/locale'; import { FILTERED_SEARCH_TERM, @@ -10,6 +11,7 @@ import { } from '~/vue_shared/components/filtered_search_bar/constants'; import FilteredSearch from '~/vue_shared/components/filtered_search_bar/filtered_search_bar_root.vue'; import { AssigneeFilterType } from '~/boards/constants'; +import eventHub from '../eventhub'; export default { i18n: { @@ -33,6 +35,7 @@ export default { data() { return { filterParams: this.initialFilterParams, + filteredSearchKey: 0, }; }, computed: { @@ -306,12 +309,21 @@ export default { }, }, created() { + eventHub.$on('updateTokens', this.updateTokens); if (!isEmpty(this.eeFilters)) { this.filterParams = this.eeFilters; } }, + beforeDestroy() { + eventHub.$off('updateTokens', this.updateTokens); + }, methods: { ...mapActions(['performSearch']), + updateTokens() { + const rawFilterParams = queryToObject(window.location.search, { gatherArrays: true }); + this.filterParams = convertObjectPropsToCamelCase(rawFilterParams, {}); + this.filteredSearchKey += 1; + }, handleFilter(filters) { this.filterParams = this.getFilterParams(filters); @@ -399,6 +411,7 @@ export default {