From f0b14194702083d8f299ed8231540304c4703bca Mon Sep 17 00:00:00 2001 From: Lera24 Date: Tue, 1 Oct 2024 16:59:47 +0300 Subject: [PATCH] fix: add new param in API, change size and add total duration[WTEL-4932] --- src/app/locale/en/en.js | 1 + src/app/locale/ru/ru.js | 1 + src/app/locale/ua/ua.js | 1 + src/modules/contacts/modules/timeline/api/TimelineAPI.js | 2 +- .../timeline/components/utils/timeline-row-duration.vue | 6 +++++- .../modules/timeline/modules/calls/api/HistoryAPI.js | 1 + .../calls/components/task-row/call-task-timeline-row.vue | 7 +++++++ 7 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/app/locale/en/en.js b/src/app/locale/en/en.js index 3f688e82..d25ecd00 100644 --- a/src/app/locale/en/en.js +++ b/src/app/locale/en/en.js @@ -15,6 +15,7 @@ export default { collapseAll: 'Collapse all', timeline: { timeline: 'Timeline', + totalDuration: 'Total duration', actions: { openInHistory: 'Open in history', playRecording: 'Play recording', diff --git a/src/app/locale/ru/ru.js b/src/app/locale/ru/ru.js index 9f99eebd..7fe41a75 100644 --- a/src/app/locale/ru/ru.js +++ b/src/app/locale/ru/ru.js @@ -15,6 +15,7 @@ export default { collapseAll: 'Свернуть все', timeline: { timeline: 'Хронология', + totalDuration: 'Общая длительность', actions: { openInHistory: 'Открыть в истории', playRecording: 'Проиграть запись', diff --git a/src/app/locale/ua/ua.js b/src/app/locale/ua/ua.js index 5218ac51..ff97b96f 100644 --- a/src/app/locale/ua/ua.js +++ b/src/app/locale/ua/ua.js @@ -15,6 +15,7 @@ export default { collapseAll: 'Згорнути все', timeline: { timeline: 'Хронологія', + totalDuration: 'Загальна тривалість', actions: { openInHistory: 'Відкрити в історії', playRecording: 'Програти запис', diff --git a/src/modules/contacts/modules/timeline/api/TimelineAPI.js b/src/modules/contacts/modules/timeline/api/TimelineAPI.js index c9893a44..26768016 100644 --- a/src/modules/contacts/modules/timeline/api/TimelineAPI.js +++ b/src/modules/contacts/modules/timeline/api/TimelineAPI.js @@ -41,7 +41,7 @@ const listHandler = (items) => { const response = await timeline.getTimeline( parentId, `${page || 1}`, - `${size || 100}`, + `${size || 10}`, undefined, undefined, undefined, diff --git a/src/modules/contacts/modules/timeline/components/utils/timeline-row-duration.vue b/src/modules/contacts/modules/timeline/components/utils/timeline-row-duration.vue index b0562e4a..dddfec3d 100644 --- a/src/modules/contacts/modules/timeline/components/utils/timeline-row-duration.vue +++ b/src/modules/contacts/modules/timeline/components/utils/timeline-row-duration.vue @@ -1,7 +1,7 @@