From d144688e78fccd299245512118a2bcb4c09d6688 Mon Sep 17 00:00:00 2001 From: Caroline Desprat Date: Wed, 13 Nov 2024 06:23:49 +0000 Subject: [PATCH] feat: table column is customizable through settings --- src/components/Task/TaskList.vue | 236 ++++++++++++++------------- src/composables/task-settings.js | 2 +- src/views/Task/Task.vue | 30 +++- src/views/Task/TasksListSettings.vue | 8 +- src/views/Task/task-properties.js | 4 - 5 files changed, 158 insertions(+), 122 deletions(-) diff --git a/src/components/Task/TaskList.vue b/src/components/Task/TaskList.vue index bea56d977..7fbf7121d 100644 --- a/src/components/Task/TaskList.vue +++ b/src/components/Task/TaskList.vue @@ -1,119 +1,137 @@ - diff --git a/src/composables/task-settings.js b/src/composables/task-settings.js index 6fc86101a..ad4baf6c8 100644 --- a/src/composables/task-settings.js +++ b/src/composables/task-settings.js @@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n' export function useTaskSettings() { const { t } = useI18n() - const propertiesOrder = ['id', 'name', 'createdAt', 'progress', 'result', 'state'] + const propertiesOrder = ['state', 'name', 'id', 'progress', 'createdAt'] const propertiesLabel = computed(() => { return { diff --git a/src/views/Task/Task.vue b/src/views/Task/Task.vue index f5d1fd86b..e836008f6 100644 --- a/src/views/Task/Task.vue +++ b/src/views/Task/Task.vue @@ -1,5 +1,5 @@ - + + + diff --git a/src/views/Task/TasksListSettings.vue b/src/views/Task/TasksListSettings.vue index 1b3bb7e0e..d56829518 100644 --- a/src/views/Task/TasksListSettings.vue +++ b/src/views/Task/TasksListSettings.vue @@ -1,5 +1,6 @@