diff --git a/frontend/src/components/CallUI.vue b/frontend/src/components/CallUI.vue index a8c6e264..cf71f48c 100644 --- a/frontend/src/components/CallUI.vue +++ b/frontend/src/components/CallUI.vue @@ -23,36 +23,35 @@
- - + +
-
+
-
- {{ getUser().full_name }} +
+
+ {{ getUser().full_name }} +
+
+917666980887
-
+917666980887
-
+
{{ counterUp?.updatedTime }}
-
+
{{ callStatus == 'ringing' ? 'Ringing...' - : callStatus == 'initiated' || callStatus == 'calling' + : calling ? 'Calling...' : 'Incoming call...' }} @@ -84,22 +83,24 @@ theme="red" label="Cancel" @click="cancelCall" + class="rounded-lg" >
-
+
@@ -119,33 +121,33 @@
-
+
-
+
{{ getUser().full_name }}
-
-
+
+
{{ counterUp?.updatedTime }}
-
-
+
+
{{ callStatus == 'ringing' ? 'Ringing...' : 'Calling...' }}
-
+
@@ -208,11 +210,12 @@ let showPhoneCall = ref(false) let showCallPopup = ref(false) let showSmallCallWindow = ref(false) let onCall = ref(false) +let calling = ref(false) let muted = ref(false) let callPopup = ref(null) let callPopupHandle = ref(null) -let calling = ref(false) let counterUp = ref(null) +let callStatus = ref('') const { width, height } = useWindowSize() @@ -330,8 +333,6 @@ function handleDisconnectedIncomingCall() { counterUp.value.stop() } -let callStatus = ref('') - async function makeOutgoingCall(close) { close() if (device) { @@ -363,7 +364,6 @@ async function makeOutgoingCall(close) { showCallPopup.value = true calling.value = true onCall.value = false - callStatus.value = 'calling' }) _call.value.on('disconnect', () => { log.value = `Call ended.` diff --git a/frontend/src/components/LayoutHeader.vue b/frontend/src/components/LayoutHeader.vue index 795b2b04..e7060217 100644 --- a/frontend/src/components/LayoutHeader.vue +++ b/frontend/src/components/LayoutHeader.vue @@ -6,7 +6,6 @@
-