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
4baff23d
Commit
4baff23d
authored
May 13, 2020
by
nuwe1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove newIssue function logic from list model
parent
ee8c4dbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
app/assets/javascripts/boards/models/list.js
app/assets/javascripts/boards/models/list.js
+1
-7
app/assets/javascripts/boards/stores/boards_store.js
app/assets/javascripts/boards/stores/boards_store.js
+9
-0
No files found.
app/assets/javascripts/boards/models/list.js
View file @
4baff23d
...
...
@@ -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
(
issue
);
}
createIssues
(
data
)
{
...
...
app/assets/javascripts/boards/stores/boards_store.js
View file @
4baff23d
...
...
@@ -607,6 +607,15 @@ const boardsStore = {
});
},
newListIssue
(
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
(
...
...
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