diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 09:55:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 09:55:51 +0000 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /app/assets/javascripts/boards/components/board_form.vue | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) | |
download | gitlab-ce-e8d2c2579383897a1dd7f9debd359abe8ae8373d.tar.gz |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'app/assets/javascripts/boards/components/board_form.vue')
-rw-r--r-- | app/assets/javascripts/boards/components/board_form.vue | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/assets/javascripts/boards/components/board_form.vue b/app/assets/javascripts/boards/components/board_form.vue index aa75a0d68f5..386ed6bd0a1 100644 --- a/app/assets/javascripts/boards/components/board_form.vue +++ b/app/assets/javascripts/boards/components/board_form.vue @@ -2,9 +2,9 @@ import { GlModal, GlAlert } from '@gitlab/ui'; import { mapGetters, mapActions, mapState } from 'vuex'; import ListLabel from '~/boards/models/label'; +import { TYPE_ITERATION, TYPE_MILESTONE, TYPE_USER } from '~/graphql_shared/constants'; import { convertToGraphQLId } from '~/graphql_shared/utils'; -import { getParameterByName } from '~/lib/utils/common_utils'; -import { visitUrl } from '~/lib/utils/url_utility'; +import { getParameterByName, visitUrl } from '~/lib/utils/url_utility'; import { __, s__ } from '~/locale'; import { fullLabelId, fullBoardId } from '../boards_util'; import { formType } from '../constants'; @@ -188,21 +188,19 @@ export default { }; }, issueBoardScopeMutationVariables() { - /* eslint-disable @gitlab/require-i18n-strings */ return { weight: this.board.weight, assigneeId: this.board.assignee?.id - ? convertToGraphQLId('User', this.board.assignee.id) + ? convertToGraphQLId(TYPE_USER, this.board.assignee.id) : null, milestoneId: this.board.milestone?.id || this.board.milestone?.id === 0 - ? convertToGraphQLId('Milestone', this.board.milestone.id) + ? convertToGraphQLId(TYPE_MILESTONE, this.board.milestone.id) : null, iterationId: this.board.iteration_id - ? convertToGraphQLId('Iteration', this.board.iteration_id) + ? convertToGraphQLId(TYPE_ITERATION, this.board.iteration_id) : null, }; - /* eslint-enable @gitlab/require-i18n-strings */ }, boardScopeMutationVariables() { return { |