diff --git a/src/i18n/fr-ca/index.ts b/src/i18n/fr-ca/index.ts index 670c2be..4c76adf 100644 --- a/src/i18n/fr-ca/index.ts +++ b/src/i18n/fr-ca/index.ts @@ -323,7 +323,7 @@ export default { shift_types: { EMERGENCY: 'Urgence', EVENING: 'Soir', - HOLIDAY: 'Férier', + HOLIDAY: 'Férié', OVERTIME: 'Supplémentaire', SICK: 'Absence', REGULAR: 'Régulier', diff --git a/src/modules/timesheets/components/timesheet/timesheet-details-shifts-row.vue b/src/modules/timesheets/components/timesheet/timesheet-details-shifts-row.vue index 6b7b8df..5058fb9 100644 --- a/src/modules/timesheets/components/timesheet/timesheet-details-shifts-row.vue +++ b/src/modules/timesheets/components/timesheet/timesheet-details-shifts-row.vue @@ -37,11 +37,13 @@ import { computed } from 'vue'; const get_text_color = (type: string): string => { switch(type) { case 'REGULAR': return 'grey-8'; - case '': return 'transparent'; + case '': return 'grey-5'; default: return 'white'; } } -const on_click_edit = () => emit('request-edit', { shift: props.shift }); +const on_click_edit = (type: string) => { + if(type !== '') { emit('request-edit', { shift: props.shift })}; +} const on_click_delete = () => emit('request-delete', { shift: props.shift }); @@ -49,9 +51,10 @@ const on_click_delete = () => emit('request-delete', { shift: props.shift });