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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
0ec5edd5
Commit
0ec5edd5
authored
Nov 21, 2018
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow adding of duplicate label names in boards
parent
16afcb55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/boards/models/issue.js
app/assets/javascripts/boards/models/issue.js
+3
-3
No files found.
app/assets/javascripts/boards/models/issue.js
View file @
0ec5edd5
...
...
@@ -55,12 +55,12 @@ class ListIssue {
}
findLabel
(
findLabel
)
{
return
this
.
labels
.
fi
lter
(
label
=>
label
.
title
===
findLabel
.
title
)[
0
]
;
return
this
.
labels
.
fi
nd
(
label
=>
label
.
id
===
findLabel
.
id
)
;
}
removeLabel
(
removeLabel
)
{
if
(
removeLabel
)
{
this
.
labels
=
this
.
labels
.
filter
(
label
=>
removeLabel
.
title
!==
label
.
title
);
this
.
labels
=
this
.
labels
.
filter
(
label
=>
removeLabel
.
id
!==
label
.
id
);
}
}
...
...
@@ -75,7 +75,7 @@ class ListIssue {
}
findAssignee
(
findAssignee
)
{
return
this
.
assignees
.
fi
lter
(
assignee
=>
assignee
.
id
===
findAssignee
.
id
)[
0
]
;
return
this
.
assignees
.
fi
nd
(
assignee
=>
assignee
.
id
===
findAssignee
.
id
)
;
}
removeAssignee
(
removeAssignee
)
{
...
...
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