fix(approvals): add minor adjustments to i18n naming

This commit is contained in:
Nicolas Drolet 2025-09-09 08:50:33 -04:00
parent 072e0931a1
commit 7f7f30d4a5
4 changed files with 21 additions and 19 deletions

View File

@ -248,7 +248,7 @@ export default {
timeSheets: 'Time sheet', timeSheets: 'Time sheet',
timeSheetValidations: 'Time sheet approvals', timeSheetValidations: 'Time sheet approvals',
}, },
timeSheet: { timesheet: {
timeSheetTab_1: 'Shifts', timeSheetTab_1: 'Shifts',
timeSheetTab_2: 'Expenses', timeSheetTab_2: 'Expenses',
templateButton: 'Apply Templates', templateButton: 'Apply Templates',

View File

@ -298,7 +298,7 @@ export default {
noResultsLabel: 'Le filtre na révélé aucun résultat', noResultsLabel: 'Le filtre na révélé aucun résultat',
noDataLabel: 'Je nai rien trouvé pour toi', noDataLabel: 'Je nai rien trouvé pour toi',
}, },
timeSheet: { timesheet: {
timeSheetTab_1: 'Quarts de travail', timeSheetTab_1: 'Quarts de travail',
timeSheetTab_2: 'Dépenses', timeSheetTab_2: 'Dépenses',
templateButton: 'Appliquer le modèle', templateButton: 'Appliquer le modèle',

View File

@ -1,10 +1,13 @@
<script setup lang="ts"> <script setup lang="ts">
import type { Shift } from 'src/modules/timesheets/types/timesheet-shift-interface'; import type { Shift } from 'src/modules/timesheets/types/timesheet-shift-interface';
import { ref } from 'vue';
const props = defineProps<{ const props = defineProps<{
shift: Shift; shift: Shift;
}>(); }>();
const is_showing_time_popup = ref<boolean>(false);
const getShiftColor = (type: string): string => { const getShiftColor = (type: string): string => {
switch(type) { switch(type) {
case 'REGULAR': return 'secondary'; case 'REGULAR': return 'secondary';
@ -28,10 +31,19 @@
</script> </script>
<template> <template>
<q-dialog
v-model="is_showing_time_popup"
>
<q-card class="q-pa-xl">
LOL
</q-card>
</q-dialog>
<q-card-section <q-card-section
horizontal horizontal
class="q-pa-none text-uppercase text-center items-center cursor-pointer rounded-10" class="q-pa-none text-uppercase text-center items-center cursor-pointer rounded-10"
style="line-height: 1;" style="line-height: 1;"
@click="is_showing_time_popup = true"
> >
<!-- punch-in timestamps --> <!-- punch-in timestamps -->
<q-card-section class="q-pa-none col"> <q-card-section class="q-pa-none col">

View File

@ -8,8 +8,7 @@
import TimesheetApprovalEmployeeExpensesChart from 'src/modules/timesheet-approval/components/graphs/timesheet-approval-employee-expenses-chart.vue'; import TimesheetApprovalEmployeeExpensesChart from 'src/modules/timesheet-approval/components/graphs/timesheet-approval-employee-expenses-chart.vue';
import type { PayPeriodOverviewEmployee } from 'src/modules/timesheet-approval/types/timesheet-approval-pay-period-overview-employee-interface'; import type { PayPeriodOverviewEmployee } from 'src/modules/timesheet-approval/types/timesheet-approval-pay-period-overview-employee-interface';
import type { PayPeriodEmployeeDetails } from '../types/timesheet-approval-pay-period-employee-details-interface'; import type { PayPeriodEmployeeDetails } from '../types/timesheet-approval-pay-period-employee-details-interface';
import { PayPeriod } from 'src/modules/shared/types/pay-period-interface'; import type { PayPeriod } from 'src/modules/shared/types/pay-period-interface';
import { colors } from 'quasar';
const props = defineProps<{ const props = defineProps<{
isLoading: boolean; isLoading: boolean;
@ -23,15 +22,6 @@ import { colors } from 'quasar';
const { t } = useI18n(); const { t } = useI18n();
const is_showing_graph = ref<boolean>(true); const is_showing_graph = ref<boolean>(true);
// case 'REGULAR': return 'green-5';
// case 'EVENING': return 'green-9';
// case 'EMERGENCY': return 'warning';
// case 'OVERTIME': return 'negative';
// case 'VACATION': return 'purple-10';
// case 'HOLIDAY': return 'purple-10';
// case 'SICK': return 'grey-9';
// default : return 'transparent';
type shiftColor = { type shiftColor = {
type: string; type: string;
color: string; color: string;
@ -40,16 +30,16 @@ import { colors } from 'quasar';
const shift_type_legend: shiftColor[] = [ const shift_type_legend: shiftColor[] = [
{ {
type: t('timeSheet.shiftRegular'), type: t('timesheet.shiftRegular'),
color: 'secondary', color: 'secondary',
text_color: 'grey-8', text_color: 'grey-8',
}, },
{ {
type: t('timeSheet.shiftEvening'), type: t('timesheet.shiftEvening'),
color: 'warning', color: 'warning',
}, },
{ {
type: t('timeSheet.shiftEmergency'), type: t('timesheet.shiftEmergency'),
color: 'amber-10', color: 'amber-10',
}, },
{ {
@ -57,15 +47,15 @@ import { colors } from 'quasar';
color: 'negative', color: 'negative',
}, },
{ {
type: t('timeSheet.shiftVacation'), type: t('timesheet.shiftVacation'),
color: 'purple-10', color: 'purple-10',
}, },
{ {
type: t('timeSheet.shiftHoliday'), type: t('timesheet.shiftHoliday'),
color: 'purple-8', color: 'purple-8',
}, },
{ {
type: t('timeSheet.shiftSick'), type: t('timesheet.shiftSick'),
color: 'grey-8', color: 'grey-8',
}, },
] ]