From 8126ca0493888e05d95360f9825d133cff19ff7e Mon Sep 17 00:00:00 2001 From: Petter Holt Juliussen Date: Tue, 6 Feb 2024 13:42:43 +0100 Subject: [PATCH] Allow customizing item colors --- src/components/ItemTag.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/ItemTag.vue b/src/components/ItemTag.vue index 200b8e184..beef66541 100644 --- a/src/components/ItemTag.vue +++ b/src/components/ItemTag.vue @@ -1,9 +1,6 @@ @@ -21,6 +18,14 @@ export default { }, }, + computed: { + bulletStyle() { + return { + background: this.item?.color || contributorTagColor(this.item.name), + }; + }, + }, + methods: { contributorTagColor, },