summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-09-06 10:46:12 +0000
committerKushal Pandya <kushalspandya@gmail.com>2019-09-06 10:46:12 +0000
commitb896a8536f37c3d3f07e9b54a404fe67329cc41c (patch)
tree5f28d098a62a2109fa3bd4eedff451eec033c8f4 /app
parenta7f3d980546b9fb905d80ced535f8252f6d4418d (diff)
downloadgitlab-ce-b896a8536f37c3d3f07e9b54a404fe67329cc41c.tar.gz
Show weight on new board issue (CE-backport)
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/boards/components/board_new_issue.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/components/board_new_issue.vue b/app/assets/javascripts/boards/components/board_new_issue.vue
index f9284266b72..f9a08f151c5 100644
--- a/app/assets/javascripts/boards/components/board_new_issue.vue
+++ b/app/assets/javascripts/boards/components/board_new_issue.vue
@@ -2,9 +2,9 @@
import $ from 'jquery';
import { GlButton } from '@gitlab/ui';
import { getMilestone } from 'ee_else_ce/boards/boards_util';
+import ListIssue from 'ee_else_ce/boards/models/issue';
import eventHub from '../eventhub';
import ProjectSelect from './project_select.vue';
-import ListIssue from '../models/issue';
import boardsStore from '../stores/boards_store';
export default {
@@ -54,6 +54,9 @@ export default {
const assignees = this.list.assignee ? [this.list.assignee] : [];
const milestone = getMilestone(this.list);
+ const { weightFeatureAvailable } = boardsStore;
+ const { weight } = weightFeatureAvailable ? boardsStore.state.currentBoard : {};
+
const issue = new ListIssue({
title: this.title,
labels,
@@ -61,6 +64,7 @@ export default {
assignees,
milestone,
project_id: this.selectedProject.id,
+ weight,
});
eventHub.$emit(`scroll-board-list-${this.list.id}`);