Skip to content
Snippets Groups Projects

Show epic colour highlight on Epic boards

3 files
+ 13
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -48,6 +48,14 @@ export default {
isDraggable() {
return !this.disabled && this.item.id && !this.item.isLoading;
},
cardStyle() {
if (this.item.color) {
// eslint-disable-next-line @gitlab/require-i18n-strings
return `--epic-color: ${this.item.color}`;
}
return '';
},
},
methods: {
...mapActions(['toggleBoardItemMultiSelection', 'toggleBoardItem']),
@@ -81,8 +89,9 @@ export default {
:data-item-id="item.id"
:data-item-iid="item.iid"
:data-item-path="item.referencePath"
:style="cardStyle"
data-testid="board_card"
class="board-card gl-p-5 gl-rounded-base"
class="board-card gl-p-5 gl-pl-4 gl-rounded-base"
@click="toggleIssue($event)"
>
<board-card-inner :list="list" :item="item" :update-filters="true" />
Loading