Commit f24d6aee authored by Simon Knox's avatar Simon Knox

show project labels on group board cards

parent 780cb31d
......@@ -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) {
......
......@@ -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();
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment