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
b8b2591e
Commit
b8b2591e
authored
May 27, 2020
by
Marvin Karegyeya
Committed by
Kushal Pandya
May 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove findLabel logic from issue model
parent
58ddbc5d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
app/assets/javascripts/boards/models/issue.js
app/assets/javascripts/boards/models/issue.js
+1
-1
app/assets/javascripts/boards/stores/boards_store.js
app/assets/javascripts/boards/stores/boards_store.js
+4
-0
changelogs/unreleased/Remove-findLabel-logic-from-issues-model.yml
...s/unreleased/Remove-findLabel-logic-from-issues-model.yml
+5
-0
No files found.
app/assets/javascripts/boards/models/issue.js
View file @
b8b2591e
...
...
@@ -36,7 +36,7 @@ class ListIssue {
}
findLabel
(
findLabel
)
{
return
this
.
labels
.
find
(
label
=>
label
.
id
===
findLabel
.
id
);
return
boardsStore
.
findIssueLabel
(
this
,
findLabel
);
}
removeLabel
(
removeLabel
)
{
...
...
app/assets/javascripts/boards/stores/boards_store.js
View file @
b8b2591e
...
...
@@ -133,6 +133,10 @@ const boardsStore = {
path
:
''
,
});
},
findIssueLabel
(
issue
,
findLabel
)
{
return
issue
.
labels
.
find
(
label
=>
label
.
id
===
findLabel
.
id
);
},
addListIssue
(
list
,
issue
,
listFrom
,
newIndex
)
{
let
moveBeforeId
=
null
;
let
moveAfterId
=
null
;
...
...
changelogs/unreleased/Remove-findLabel-logic-from-issues-model.yml
0 → 100644
View file @
b8b2591e
---
title
:
Remove findLabel logic from issue model
merge_request
:
32239
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