diff --git a/src/pages/Ticket/Card/TicketDescriptor.vue b/src/pages/Ticket/Card/TicketDescriptor.vue index c76c437c2..31662e343 100644 --- a/src/pages/Ticket/Card/TicketDescriptor.vue +++ b/src/pages/Ticket/Card/TicketDescriptor.vue @@ -67,12 +67,7 @@ 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)); @@ -93,9 +88,15 @@ const setData = (entity) =>