Commit 8ae7e85b authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'Remove-newIssue-logic-from-list-model' into 'master'

Remove newIssue function logic from list model

See merge request gitlab-org/gitlab!32244
parents af6df86b 1717804e
......@@ -114,13 +114,7 @@ class List {
}
newIssue(issue) {
this.addIssue(issue, null, 0);
this.issuesSize += 1;
return boardsStore
.newIssue(this.id, issue)
.then(res => res.data)
.then(data => this.onNewIssueResponse(issue, data));
return boardsStore.newListIssue(this, issue);
}
createIssues(data) {
......
......@@ -607,6 +607,15 @@ const boardsStore = {
});
},
newListIssue(list, issue) {
list.addIssue(issue, null, 0);
list.issuesSize += 1;
return this.newIssue(list.id, issue)
.then(res => res.data)
.then(data => list.onNewIssueResponse(issue, data));
},
getBacklog(data) {
return axios.get(
mergeUrlParams(
......
---
title: Remove newIssue logic from list model
merge_request: 32244
author: nuwe1
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment