Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
855966c5
Commit
855966c5
authored
Oct 09, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update assignee and labels from response
parent
a353b253
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
app/assets/javascripts/boards/components/board_new_issue.js
app/assets/javascripts/boards/components/board_new_issue.js
+0
-9
app/assets/javascripts/boards/components/modal/footer.js
app/assets/javascripts/boards/components/modal/footer.js
+1
-1
app/assets/javascripts/boards/models/list.js
app/assets/javascripts/boards/models/list.js
+2
-0
No files found.
app/assets/javascripts/boards/components/board_new_issue.js
View file @
855966c5
...
...
@@ -42,7 +42,6 @@ export default {
this
.
error
=
false
;
const
board
=
Store
.
state
.
currentBoard
;
const
labels
=
this
.
list
.
label
?
[
this
.
list
.
label
]
:
[];
const
issue
=
new
ListIssue
({
title
:
this
.
title
,
...
...
@@ -52,14 +51,6 @@ export default {
project_id
:
this
.
selectedProject
.
id
,
});
if
(
board
.
assignee
)
{
issue
.
assignees
=
[
board
.
assignee
];
}
if
(
board
.
labels
.
length
>
0
)
{
issue
.
labels
=
_
.
uniq
([...
labels
,
...
board
.
labels
],
label
=>
label
.
id
);
}
eventHub
.
$emit
(
`scroll-board-list-
${
this
.
list
.
id
}
`
);
this
.
cancel
();
...
...
app/assets/javascripts/boards/components/modal/footer.js
View file @
855966c5
...
...
@@ -38,7 +38,7 @@ gl.issueBoards.ModalFooter = Vue.extend({
add_label_ids
:
[
list
.
label
.
id
,
...
boardLabelIds
],
milestone_id
:
currentBoard
.
milestone_id
,
assignee_ids
:
[
currentBoard
.
assignee_id
],
weight
:
currentBoard
.
weight
weight
:
currentBoard
.
weight
,
}).
catch
(()
=>
{
new
Flash
(
'
Failed to update issues, please try again.
'
,
'
alert
'
);
...
...
app/assets/javascripts/boards/models/list.js
View file @
855966c5
...
...
@@ -114,6 +114,8 @@ class List {
issue
.
iid
=
data
.
iid
;
issue
.
milestone
=
data
.
milestone
;
issue
.
project
=
data
.
project
;
issue
.
assignees
=
data
.
assignees
;
issue
.
labels
=
data
.
labels
;
if
(
this
.
issuesSize
>
1
)
{
const
moveBeforeId
=
this
.
issues
[
1
].
id
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment