From 42fa647cf635636a5dc1f1007dfbcbb690252b92 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 18 Jul 2024 12:51:36 +0530 Subject: [PATCH] fix: moved call content in separate component --- .../src/components/Activities/Activities.vue | 194 +----------------- .../src/components/Activities/CallContent.vue | 106 ++++++++++ 2 files changed, 116 insertions(+), 184 deletions(-) create mode 100644 frontend/src/components/Activities/CallContent.vue diff --git a/frontend/src/components/Activities/Activities.vue b/frontend/src/components/Activities/Activities.vue index 0c12fbed..a9e7d41a 100644 --- a/frontend/src/components/Activities/Activities.vue +++ b/frontend/src/components/Activities/Activities.vue @@ -276,99 +276,22 @@ :class="i != activities.length - 1 ? 'after:h-full' : 'after:h-4'" >
+ +
-
-
-
- {{ - call.type == 'Incoming' - ? __('Inbound Call') - : __('Outbound Call') - }} -
-
- -
- {{ __(timeAgo(call.creation)) }} -
-
-
-
-
-
- -
{{ __('Duration') }}
-
- {{ call.duration }} -
-
-
- -
- {{ - call.show_recording - ? __('Hide Recording') - : __('Listen to Call') - }} -
-
-
-
- -
-
-
- -
-
- {{ __(call.caller.label) }} -
-
- {{ call.from }} -
-
- - -
-
- {{ __(call.receiver.label) }} -
-
- {{ call.to }} -
-
-
-
-
+ @@ -535,99 +458,7 @@ " class="mb-4" > -
-
- - - {{ activity.caller.label }} - - {{ - activity.type == 'Incoming' - ? __('has reached out') - : __('has made a call') - }} -
-
- -
- {{ __(timeAgo(activity.creation)) }} -
-
-
-
-
-
-
-
- {{ - activity.type == 'Incoming' - ? __('Inbound Call') - : __('Outbound Call') - }} -
-
-
- -
-
-
- - - - - - - - - - -
-
- -
-
+
@@ -849,10 +680,9 @@ />