From 722af48aa69fbdfb7f53e618083e685f6b7848c3 Mon Sep 17 00:00:00 2001 From: Andrea Terzani Date: Mon, 7 Jul 2025 16:18:01 +0200 Subject: [PATCH] Aggiornato i nomi delle opzioni video e aggiunto il tipo 'Estimation' nel mapping dei documenti --- src/views/pages/KsVideos/KsNewVideoForm.vue | 7 ++++--- src/views/pages/ksDocuments/KsDocuments.vue | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/pages/KsVideos/KsNewVideoForm.vue b/src/views/pages/KsVideos/KsNewVideoForm.vue index bcd4659..71caf58 100644 --- a/src/views/pages/KsVideos/KsNewVideoForm.vue +++ b/src/views/pages/KsVideos/KsNewVideoForm.vue @@ -201,11 +201,12 @@ const groupDocType = ref(''); const uploadPercentage = ref(0); const videoTypeOptions = ref([ - { name: 'Functional video', value: 'functional_video' }, - { name: 'Code Instruction video', value: 'code_instruction_video' }, - { name: 'Specification video', value: 'specification_video' }, + { name: 'Functional', value: 'functional_video' }, + { name: 'Code Istruction', value: 'code_istruction_video' }, + { name: 'Estimation ', value: 'estimation_video' }, { name: 'Other', value: 'other_video' } ]); + const availableAppOptions = ref([ { name: 'Cross', value: '' }, ...userPrefStore.availableApp.map(app => ({ name: app.internal_name, value: app.internal_name })) diff --git a/src/views/pages/ksDocuments/KsDocuments.vue b/src/views/pages/ksDocuments/KsDocuments.vue index 4bd039b..c92ca44 100644 --- a/src/views/pages/ksDocuments/KsDocuments.vue +++ b/src/views/pages/ksDocuments/KsDocuments.vue @@ -439,12 +439,12 @@ const mapDocType = (type) => { const mapping = { 'functional': 'Functional', 'code_instruction': 'Code Instruction', - 'specification': 'Specification', - 'other': 'Other' + 'estimation': 'Estimation' }; return mapping[type] || type; }; + // Function to format date string function formatDate(dateString) { // Parse the date string using moment