Aggiornato i nomi delle opzioni video e aggiunto il tipo 'Estimation' nel mapping dei documenti

This commit is contained in:
Andrea Terzani
2025-07-07 16:18:01 +02:00
parent e297a5fa42
commit 722af48aa6
2 changed files with 6 additions and 5 deletions

View File

@@ -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 }))

View File

@@ -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