From d6ab3b96e2d54feb277e8ca831d787063e08f7f5 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 16 Jan 2025 14:55:39 +0530 Subject: [PATCH] fix: layout & moved close button to footer --- .../src/components/Telephony/ExotelCallUI.vue | 188 ++++++++++-------- 1 file changed, 110 insertions(+), 78 deletions(-) diff --git a/frontend/src/components/Telephony/ExotelCallUI.vue b/frontend/src/components/Telephony/ExotelCallUI.vue index 8cd142c9..97690959 100644 --- a/frontend/src/components/Telephony/ExotelCallUI.vue +++ b/frontend/src/components/Telephony/ExotelCallUI.vue @@ -2,55 +2,40 @@
-
- - {{ __(callStatus) }} - - {{ phoneNumber }} - + {{ contact?.full_name ?? phoneNumber }} + · +
+ {{ counterUp?.updatedTime }} +
+ +
{{ __(callStatus) }}
-
-
- {{ counterUp?.updatedTime }} +
+
+
+ +
+ +
+
+
+ {{ contact.full_name ?? phoneNumber }} +
+
+
+ {{ phoneNumber }} + · + {{ counterUp?.updatedTime }} +
+ +
{{ __(callStatus) }}
+
+
+
+
+
+ {{ counterUp?.updatedTime }} +
+ +
{{ __(callStatus) }}
+
- -
{{ __(callStatus) }}
-
- -
+ +
{{ note }}
@@ -112,11 +138,11 @@ >
-
-
{{ contact.full_name }}
-
{{ phoneNumber }}
+
+
{{ contact.full_name }}
+
{{ phoneNumber }}
-
{{ phoneNumber }}
+
{{ phoneNumber }}
+
@@ -292,7 +324,7 @@ function updateStatus(data) { data['Legs[1][Status]'] == 'in-progress' ) { counterUp.value.start() - return 'In Progress' + return 'In progress' } else if ( data.EventType == 'terminal' && data.Direction == 'outbound-api' && @@ -300,14 +332,14 @@ function updateStatus(data) { data['Legs[1][Status]'] == 'no-answer' ) { counterUp.value.stop() - return 'No Answer' + return 'No answer' } else if ( data.EventType == 'terminal' && data.Direction == 'outbound-api' && data.Status == 'completed' ) { counterUp.value.stop() - return 'Call Ended' + return 'Call ended' } // incoming call @@ -316,13 +348,13 @@ function updateStatus(data) { data.Direction == 'incoming' && data.Status == 'busy' ) { - return 'Incoming Call' + return 'Incoming call' } else if ( data.EventType == 'Terminal' && data.Direction == 'incoming' && data.Status == 'free' ) { - return 'Call Ended' + return 'Call ended' } }