From 594c39e3321465024eb553dccc90f29321e52850 Mon Sep 17 00:00:00 2001 From: dlohvinov Date: Mon, 22 Apr 2024 18:51:53 +0300 Subject: [PATCH] refactor: timeline filters [WTEL-4465] --- .../modules/timeline/api/TimelineAPI.js | 2 +- .../timeline/components/the-timeline.vue | 10 +-- .../timeline/components/timeline-header.vue | 35 +++++--- .../timeline-task-filter-container.vue | 89 ------------------- .../components/timeline-task-filter.vue | 46 ---------- .../components/timeline-task-type-filter.vue | 89 +++++++++++++++++++ .../timeline/modules/filters/store/filters.js | 9 +- 7 files changed, 124 insertions(+), 156 deletions(-) delete mode 100644 src/modules/contacts/modules/timeline/modules/filters/components/timeline-task-filter-container.vue delete mode 100644 src/modules/contacts/modules/timeline/modules/filters/components/timeline-task-filter.vue create mode 100644 src/modules/contacts/modules/timeline/modules/filters/components/timeline-task-type-filter.vue diff --git a/src/modules/contacts/modules/timeline/api/TimelineAPI.js b/src/modules/contacts/modules/timeline/api/TimelineAPI.js index 6d08f080..4bd1eec9 100644 --- a/src/modules/contacts/modules/timeline/api/TimelineAPI.js +++ b/src/modules/contacts/modules/timeline/api/TimelineAPI.js @@ -28,7 +28,7 @@ const getList = async (params) => { parentId, dateFrom, dateTo, - type, + // type, ); const { days, next } = applyTransform(response.data, [ snakeToCamel(), diff --git a/src/modules/contacts/modules/timeline/components/the-timeline.vue b/src/modules/contacts/modules/timeline/components/the-timeline.vue index 3e6be806..43f79737 100644 --- a/src/modules/contacts/modules/timeline/components/the-timeline.vue +++ b/src/modules/contacts/modules/timeline/components/the-timeline.vue @@ -1,10 +1,10 @@