From 10a62219ef4d1529549673a22af8b775d19cd403 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Tue, 16 Sep 2025 15:37:01 -0400 Subject: [PATCH 1/3] fix(timesheet): minor fixes to UI and time regex --- src/i18n/fr-ca/index.ts | 2 +- .../timesheet-details-shifts-row.vue | 11 ++-- .../timesheets/composables/use-shift-api.ts | 2 +- .../pages/timesheet-details-overview.vue | 56 +++++++++++++------ 4 files changed, 49 insertions(+), 22 deletions(-) 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 }); \ No newline at end of file