diff --git a/src/components/pages/Conversations/CscCallItem.vue b/src/components/pages/Conversations/CscCallItem.vue
index 01ba472a..d210bd09 100644
--- a/src/components/pages/Conversations/CscCallItem.vue
+++ b/src/components/pages/Conversations/CscCallItem.vue
@@ -1,5 +1,7 @@
-
+
@@ -44,6 +47,7 @@
@@ -113,6 +117,10 @@ export default {
blockBothPossible: {
type: Boolean,
default: false
+ },
+ sleekMode: {
+ type: Boolean,
+ default: false
}
},
data () {
@@ -185,4 +193,6 @@ export default {
+ .csc-call-item-sleek-mode
+ padding 2px !important
+
\ No newline at end of file
diff --git a/src/components/pages/Dashboard/CscCardDashboard.vue b/src/components/pages/Dashboard/CscCardDashboard.vue
index ae5c616d..bb8a7dfb 100644
--- a/src/components/pages/Dashboard/CscCardDashboard.vue
+++ b/src/components/pages/Dashboard/CscCardDashboard.vue
@@ -49,42 +49,48 @@
/>
+ class="csc-card-list">
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
- {{ item.title }}
-
- {{ item.sub_title }}
-
-
+
+ {{ item.title }}
+
+ {{ item.sub_title }}
+
+
-
-
- {{ item.extra_text }}
-
-
-
+
+
+ {{ item.extra_text }}
+
+
+
+
+
@@ -169,6 +176,10 @@ export default {
noItemsMessage: {
type: String,
default: ''
+ },
+ useSlot: {
+ type: Boolean,
+ default: false
}
}
}
@@ -186,5 +197,8 @@ export default {
padding-bottom: 22px
.csc-card-list
- min-height: 359px
+ height: 400px
+
+ .csc-card-footer
+ height: 80px
diff --git a/src/pages/CscPageDashboard.vue b/src/pages/CscPageDashboard.vue
index 7361ab91..d6af3e19 100644
--- a/src/pages/CscPageDashboard.vue
+++ b/src/pages/CscPageDashboard.vue
@@ -27,7 +27,18 @@
:loading="$wait.is('getCallsData')"
:error="callsError"
data-cy="dashboard-view-calllist"
- />
+ :use-slot=true
+ >
+
+
+
+
import CscCardDashboard from 'components/pages/Dashboard/CscCardDashboard'
+import CscCallItem from 'components/pages/Conversations/CscCallItem'
import CscPage from 'components/CscPage'
import { mapWaitingActions } from 'vue-wait'
import {
@@ -63,7 +75,8 @@ export default {
name: 'CscPageDashboard',
components: {
CscCardDashboard,
- CscPage
+ CscPage,
+ CscCallItem
},
data () {
return {
@@ -119,14 +132,15 @@ export default {
showGlobalError(calls?.reason?.data?.message)
} else {
this.callsCount = calls.value.totalCount
- this.callItems = calls.value.items.map((item) => {
+ this.callItems = calls.value.items.slice(0, 5).map((item) => {
return {
id: item.id,
icon: { name: callIcon(item), color: callIconColor(item) },
clickable_icon: false,
title: this.checkTitleToShow(item),
sub_title: date.formatDate(item.start_time, INTERNAL_DATE_FORMAT_DASH_HOUR),
- extra_text: item.duration.split('.')[0]
+ extra_text: item.duration.split('.')[0],
+ call: item
}
})
}