Fix issue with list label text color
This commit is contained in:
parent
6c913f2c65
commit
314fbd4091
|
@ -90,6 +90,7 @@ class List {
|
|||
this.id = data.id;
|
||||
this.type = data.list_type;
|
||||
this.position = data.position;
|
||||
this.label = data.label;
|
||||
|
||||
return this.getIssues();
|
||||
});
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Resolve issue where list labels did not have the correct text color on creation
|
||||
merge_request: 26794
|
||||
author: Tucker Chapman
|
||||
type: fixed
|
|
@ -45,6 +45,7 @@ describe('List model', () => {
|
|||
id: _.random(10000),
|
||||
title: 'test',
|
||||
color: 'red',
|
||||
text_color: 'white',
|
||||
},
|
||||
});
|
||||
list.save();
|
||||
|
@ -53,6 +54,8 @@ describe('List model', () => {
|
|||
expect(list.id).toBe(listObj.id);
|
||||
expect(list.type).toBe('label');
|
||||
expect(list.position).toBe(0);
|
||||
expect(list.label.color).toBe('red');
|
||||
expect(list.label.textColor).toBe('white');
|
||||
done();
|
||||
}, 0);
|
||||
});
|
||||
|
|
|
@ -16,6 +16,7 @@ export const listObj = {
|
|||
title: 'Testing',
|
||||
color: 'red',
|
||||
description: 'testing;',
|
||||
textColor: 'white',
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue