diff --git a/src/css/quasar.variables.scss b/src/css/quasar.variables.scss index 45d18af7e..c443c5826 100644 --- a/src/css/quasar.variables.scss +++ b/src/css/quasar.variables.scss @@ -18,6 +18,7 @@ $positive: #c8e484; $negative: #fb5252; $info: #84d0e2; $warning: #f4b974; +$neutral: #b0b0b0; // Pendiente de cuadrar con la base de datos $success: $positive; $alert: $negative; @@ -51,3 +52,6 @@ $width-xl: 1600px; .bg-alert { background-color: $negative; } +.bg-neutral { + background-color: $neutral; +} diff --git a/src/pages/Claim/Card/ClaimDescriptor.vue b/src/pages/Claim/Card/ClaimDescriptor.vue index 76ede81ed..3728a18c0 100644 --- a/src/pages/Claim/Card/ClaimDescriptor.vue +++ b/src/pages/Claim/Card/ClaimDescriptor.vue @@ -28,14 +28,8 @@ const entityId = computed(() => { return $props.id || route.params.id; }); -const STATE_COLOR = { - pending: 'warning', - incomplete: 'info', - resolved: 'positive', - canceled: 'negative', -}; -function stateColor(code) { - return STATE_COLOR[code]; +function stateColor(entity) { + return entity?.claimState?.classColor; } onMounted(async () => { @@ -57,9 +51,8 @@ onMounted(async () => {