From d47f5bae13ee76e6e4dd7b5c52ef100d900daea0 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Sat, 13 Jan 2024 13:51:29 +0530 Subject: [PATCH] fix: added mapping to call log status to display on Ui --- frontend/src/pages/CallLog.vue | 20 ++++++++++++++++++-- frontend/src/pages/CallLogs.vue | 20 ++++++++++++++++++-- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/CallLog.vue b/frontend/src/pages/CallLog.vue index 66d8a7e1..2cc0036e 100644 --- a/frontend/src/pages/CallLog.vue +++ b/frontend/src/pages/CallLog.vue @@ -35,9 +35,9 @@
@@ -245,6 +245,22 @@ const breadcrumbs = computed(() => [ route: { name: 'Call Log', params: { callLogId: props.callLogId } }, }, ]) + +const statusLabelMap = { + Completed: 'Completed', + Busy: 'Declined', + Ringing: 'Ringing', + 'No Answer': 'Missed Call', + 'In Progress': 'In Progress', +} + +const statusColorMap = { + Completed: 'green', + Busy: 'orange', + Ringing: 'gray', + 'No Answer': 'red', + 'In Progress': 'blue', +}