diff --git a/src/pages/Ticket/Card/TicketDescriptor.vue b/src/pages/Ticket/Card/TicketDescriptor.vue index 4ae20b70c..c76c437c2 100644 --- a/src/pages/Ticket/Card/TicketDescriptor.vue +++ b/src/pages/Ticket/Card/TicketDescriptor.vue @@ -67,7 +67,12 @@ const filter = { }, ], }; - +function stateColor(state) { + if (state.code === 'OK') return 'text-green'; + if (state.code === 'FREE') return 'text-blue-3'; + if (state.alertLevel === 1) return 'text-primary'; + if (state.alertLevel === 0) return 'text-red'; +} const data = ref(useCardDescription()); const setData = (entity) => (data.value = useCardDescription(entity.client.name, entity.id)); @@ -88,9 +93,9 @@ const setData = (entity) =>