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
943e2a95
Commit
943e2a95
authored
Jul 07, 2020
by
Marvin Karegyeya
Committed by
Kushal Pandya
Jul 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove onNewIssuesResponse function logic from list model
parent
1a0eb000
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
app/assets/javascripts/boards/models/list.js
app/assets/javascripts/boards/models/list.js
+1
-6
app/assets/javascripts/boards/stores/boards_store.js
app/assets/javascripts/boards/stores/boards_store.js
+9
-0
changelogs/unreleased/Remove-onNewIssueResponse-logic-from-list-model.yml
...eased/Remove-onNewIssueResponse-logic-from-list-model.yml
+5
-0
No files found.
app/assets/javascripts/boards/models/list.js
View file @
943e2a95
...
...
@@ -170,12 +170,7 @@ class List {
}
onNewIssueResponse
(
issue
,
data
)
{
issue
.
refreshData
(
data
);
if
(
this
.
issuesSize
>
1
)
{
const
moveBeforeId
=
this
.
issues
[
1
].
id
;
boardsStore
.
moveIssue
(
issue
.
id
,
null
,
null
,
null
,
moveBeforeId
);
}
boardsStore
.
onNewListIssueResponse
(
this
,
issue
,
data
);
}
}
...
...
app/assets/javascripts/boards/stores/boards_store.js
View file @
943e2a95
...
...
@@ -296,6 +296,15 @@ const boardsStore = {
Object
.
assign
(
this
.
moving
,
{
list
,
issue
});
},
onNewListIssueResponse
(
list
,
issue
,
data
)
{
issue
.
refreshData
(
data
);
if
(
list
.
issuesSize
>
1
)
{
const
moveBeforeId
=
list
.
issues
[
1
].
id
;
this
.
moveIssue
(
issue
.
id
,
null
,
null
,
null
,
moveBeforeId
);
}
},
moveMultipleIssuesToList
({
listFrom
,
listTo
,
issues
,
newIndex
})
{
const
issueTo
=
issues
.
map
(
issue
=>
listTo
.
findIssue
(
issue
.
id
));
const
issueLists
=
issues
.
map
(
issue
=>
issue
.
getLists
()).
flat
();
...
...
changelogs/unreleased/Remove-onNewIssueResponse-logic-from-list-model.yml
0 → 100644
View file @
943e2a95
---
title
:
Remove onNewIssueResponse logic from list model
merge_request
:
32245
author
:
nuwe1
type
:
other
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