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
f24d6aee
Commit
f24d6aee
authored
Sep 19, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show project labels on group board cards
parent
780cb31d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
app/assets/javascripts/boards/components/issue_card_inner.js
app/assets/javascripts/boards/components/issue_card_inner.js
+0
-1
spec/javascripts/boards/issue_card_spec.js
spec/javascripts/boards/issue_card_spec.js
+3
-3
No files found.
app/assets/javascripts/boards/components/issue_card_inner.js
View file @
f24d6aee
...
...
@@ -111,7 +111,6 @@ gl.issueBoards.IssueCardInner = Vue.extend({
},
showLabel
(
label
)
{
if
(
!
label
.
id
)
return
false
;
if
(
this
.
groupId
&&
label
.
type
===
'
ProjectLabel
'
)
return
false
;
return
true
;
},
filterByLabel
(
label
,
e
)
{
...
...
spec/javascripts/boards/issue_card_spec.js
View file @
f24d6aee
...
...
@@ -322,7 +322,7 @@ describe('Issue card component', () => {
.
catch
(
done
.
fail
);
});
it
(
'
does not show
project labels on group boards
'
,
(
done
)
=>
{
it
(
'
shows
project labels on group boards
'
,
(
done
)
=>
{
component
.
issue
.
addLabel
(
new
ListLabel
({
id
:
123
,
title
:
'
Project label
'
,
...
...
@@ -334,10 +334,10 @@ describe('Issue card component', () => {
.
then
(()
=>
{
expect
(
component
.
$el
.
querySelectorAll
(
'
.label
'
).
length
,
).
toBe
(
2
);
).
toBe
(
3
);
expect
(
component
.
$el
.
textContent
,
).
not
.
toContain
(
'
Project label
'
);
).
toContain
(
'
Project label
'
);
done
();
})
...
...
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