From aee81cbe18d233ef326ca490530bd3579a9f5b8f Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 22 Aug 2023 23:39:30 +0530 Subject: [PATCH] =?UTF-8?q?fix:=C2=A0added=20counter=20timer=20while=20cal?= =?UTF-8?q?l=20is=20on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 +- frontend/src/components/CallUI.vue | 32 ++++++++----- frontend/src/components/CountUpTimer.vue | 57 ++++++++++++++++++++++++ yarn.lock | 30 +++++++++++++ 4 files changed, 110 insertions(+), 11 deletions(-) create mode 100644 frontend/src/components/CountUpTimer.vue diff --git a/frontend/package.json b/frontend/package.json index 6dd94c27..293e53a0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -16,7 +16,7 @@ "@vueuse/integrations": "^10.3.0", "autoprefixer": "^10.4.14", "feather-icons": "^4.28.0", - "frappe-ui": "^0.1.0-alpha.11", + "frappe-ui": "^0.1.0-alpha.12", "pinia": "^2.0.33", "postcss": "^8.4.5", "socket.io-client": "^4.7.2", diff --git a/frontend/src/components/CallUI.vue b/frontend/src/components/CallUI.vue index 7539fb5d..c3d15c74 100644 --- a/frontend/src/components/CallUI.vue +++ b/frontend/src/components/CallUI.vue @@ -21,7 +21,7 @@
+917666980887
-
+ +
+ {{ counterUp?.updatedTime }} +
+
+
{{ - onCall - ? '0:38' - : callStatus == 'ringing' + callStatus == 'ringing' ? 'Ringing...' : callStatus == 'initiated' || callStatus == 'calling' ? 'Calling...' @@ -115,7 +118,7 @@
@@ -129,7 +132,9 @@
-
0:38
+
+ {{ counterUp?.updatedTime }} +