From f71f341aad72be1e64928e85febbff39e118c848 Mon Sep 17 00:00:00 2001 From: carlossa Date: Thu, 21 Dec 2023 12:15:01 +0100 Subject: [PATCH] refs #6128 change stateColor --- src/pages/Claim/Card/ClaimSummary.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/pages/Claim/Card/ClaimSummary.vue b/src/pages/Claim/Card/ClaimSummary.vue index 412bf240c..d6a7f1333 100644 --- a/src/pages/Claim/Card/ClaimSummary.vue +++ b/src/pages/Claim/Card/ClaimSummary.vue @@ -99,10 +99,15 @@ const detailsColumns = ref([ }, ]); +const STATE_COLOR = { + pending: 'positive', + + managed: 'warning', + + resolved: 'negative', +}; function stateColor(code) { - if (code === 'pending') return 'green'; - if (code === 'managed') return 'orange'; - if (code === 'resolved') return 'red'; + return STATE_COLOR[code]; } const developmentColumns = ref([