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 uploadPercentage = ref(0);
const videoTypeOptions = ref([ const videoTypeOptions = ref([
{ name: 'Functional video', value: 'functional_video' }, { name: 'Functional', value: 'functional_video' },
{ name: 'Code Instruction video', value: 'code_instruction_video' }, { name: 'Code Istruction', value: 'code_istruction_video' },
{ name: 'Specification video', value: 'specification_video' }, { name: 'Estimation ', value: 'estimation_video' },
{ name: 'Other', value: 'other_video' } { name: 'Other', value: 'other_video' }
]); ]);
const availableAppOptions = ref([ const availableAppOptions = ref([
{ name: 'Cross', value: '' }, { name: 'Cross', value: '' },
...userPrefStore.availableApp.map(app => ({ name: app.internal_name, value: app.internal_name })) ...userPrefStore.availableApp.map(app => ({ name: app.internal_name, value: app.internal_name }))

View File

@@ -439,12 +439,12 @@ const mapDocType = (type) => {
const mapping = { const mapping = {
'functional': 'Functional', 'functional': 'Functional',
'code_instruction': 'Code Instruction', 'code_instruction': 'Code Instruction',
'specification': 'Specification', 'estimation': 'Estimation'
'other': 'Other'
}; };
return mapping[type] || type; return mapping[type] || type;
}; };
// Function to format date string // Function to format date string
function formatDate(dateString) { function formatDate(dateString) {
// Parse the date string using moment // Parse the date string using moment