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
2901959f
Commit
2901959f
authored
Jun 10, 2020
by
Marvin Karegyeya
Committed by
Kushal Pandya
Jun 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove removeMultipleIssues function logic from list model
parent
a70da6da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
12 deletions
+20
-12
app/assets/javascripts/boards/models/list.js
app/assets/javascripts/boards/models/list.js
+1
-12
app/assets/javascripts/boards/stores/boards_store.js
app/assets/javascripts/boards/stores/boards_store.js
+14
-0
changelogs/unreleased/Remove-removeMultipleIssues-logic-from-list-model.yml
...sed/Remove-removeMultipleIssues-logic-from-list-model.yml
+5
-0
No files found.
app/assets/javascripts/boards/models/list.js
View file @
2901959f
...
@@ -158,18 +158,7 @@ class List {
...
@@ -158,18 +158,7 @@ class List {
}
}
removeMultipleIssues
(
removeIssues
)
{
removeMultipleIssues
(
removeIssues
)
{
const
ids
=
removeIssues
.
map
(
issue
=>
issue
.
id
);
return
boardsStore
.
removeListMultipleIssues
(
this
,
removeIssues
);
this
.
issues
=
this
.
issues
.
filter
(
issue
=>
{
const
matchesRemove
=
ids
.
includes
(
issue
.
id
);
if
(
matchesRemove
)
{
this
.
issuesSize
-=
1
;
issue
.
removeLabel
(
this
.
label
);
}
return
!
matchesRemove
;
});
}
}
removeIssue
(
removeIssue
)
{
removeIssue
(
removeIssue
)
{
...
...
app/assets/javascripts/boards/stores/boards_store.js
View file @
2901959f
...
@@ -275,6 +275,20 @@ const boardsStore = {
...
@@ -275,6 +275,20 @@ const boardsStore = {
return
!
matchesRemove
;
return
!
matchesRemove
;
});
});
},
},
removeListMultipleIssues
(
list
,
removeIssues
)
{
const
ids
=
removeIssues
.
map
(
issue
=>
issue
.
id
);
list
.
issues
=
list
.
issues
.
filter
(
issue
=>
{
const
matchesRemove
=
ids
.
includes
(
issue
.
id
);
if
(
matchesRemove
)
{
list
.
issuesSize
-=
1
;
issue
.
removeLabel
(
list
.
label
);
}
return
!
matchesRemove
;
});
},
startMoving
(
list
,
issue
)
{
startMoving
(
list
,
issue
)
{
Object
.
assign
(
this
.
moving
,
{
list
,
issue
});
Object
.
assign
(
this
.
moving
,
{
list
,
issue
});
...
...
changelogs/unreleased/Remove-removeMultipleIssues-logic-from-list-model.yml
0 → 100644
View file @
2901959f
---
title
:
Remove removeMultipleIssues logic from list model
merge_request
:
32254
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