Skip to content

Commit

Permalink
fix: add status colour on customer portal (#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
michellealva authored Jul 30, 2023
1 parent 32b0133 commit 9ff80ef
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion desk/src/pages/portal/TicketList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@
</div>
</template>
<template #status="{ data }">
{{ transformStatus(data.status) }}
<Badge
:label="transformStatus(data.status)"
:theme="statusColormap[data.status]"
variant="subtle"
/>
</template>
<template #creation="{ data }">
{{ dayjs(data.creation).fromNow() }}
Expand Down Expand Up @@ -118,6 +122,13 @@ const tickets = createListManager({
auto: true,
});
const statusColormap = {
Open: "red",
Replied: "orange",
Resolved: "green",
Closed: "blue",
};
const ACTIVE_TICKET_TYPES = ["Open", "Replied"];
const dropdownTitle = ref("All tickets");
const dropdownOptions = [
Expand Down

0 comments on commit 9ff80ef

Please sign in to comment.