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
9cb7db03
Commit
9cb7db03
authored
Jun 16, 2020
by
Marvin Karegyeya
Committed by
Kushal Pandya
Jun 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove addLabel function logic from issue model
parent
68c8622b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
app/assets/javascripts/boards/models/issue.js
app/assets/javascripts/boards/models/issue.js
+1
-3
app/assets/javascripts/boards/stores/boards_store.js
app/assets/javascripts/boards/stores/boards_store.js
+5
-0
changelogs/unreleased/Remove-addLabel-function-logic-from-issue-models.yml
...ased/Remove-addLabel-function-logic-from-issue-models.yml
+5
-0
No files found.
app/assets/javascripts/boards/models/issue.js
View file @
9cb7db03
...
...
@@ -30,9 +30,7 @@ class ListIssue {
}
addLabel
(
label
)
{
if
(
!
this
.
findLabel
(
label
))
{
this
.
labels
.
push
(
new
ListLabel
(
label
));
}
boardsStore
.
addIssueLabel
(
this
,
label
);
}
findLabel
(
findLabel
)
{
...
...
app/assets/javascripts/boards/stores/boards_store.js
View file @
9cb7db03
...
...
@@ -837,6 +837,11 @@ const boardsStore = {
issue
.
assignees
=
obj
.
assignees
.
map
(
a
=>
new
ListAssignee
(
a
));
}
},
addIssueLabel
(
issue
,
label
)
{
if
(
!
issue
.
findLabel
(
label
))
{
issue
.
labels
.
push
(
new
ListLabel
(
label
));
}
},
updateIssue
(
issue
)
{
const
data
=
{
issue
:
{
...
...
changelogs/unreleased/Remove-addLabel-function-logic-from-issue-models.yml
0 → 100644
View file @
9cb7db03
---
title
:
Remove addLabel Logic from issue models
merge_request
:
32233
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