Merge pull request 'fix(approvals): change backend address to use env instead of localhost' (#56) from dev/nicolas/staging-prep into main
Reviewed-on: Targo/targo_frontend#56
This commit is contained in:
commit
d2576d3a44
|
|
@ -374,6 +374,7 @@ export default {
|
||||||
expense: "an expense",
|
expense: "an expense",
|
||||||
shift: "a shift",
|
shift: "a shift",
|
||||||
preset: "many shifts",
|
preset: "many shifts",
|
||||||
|
update_notification: "the data was updated automatically",
|
||||||
},
|
},
|
||||||
print_report: {
|
print_report: {
|
||||||
title: "Download options",
|
title: "Download options",
|
||||||
|
|
|
||||||
|
|
@ -374,6 +374,7 @@ export default {
|
||||||
expense: "une dépense",
|
expense: "une dépense",
|
||||||
shift: " un quart de travail",
|
shift: " un quart de travail",
|
||||||
preset: "plusieurs quarts de travail",
|
preset: "plusieurs quarts de travail",
|
||||||
|
update_notification: "les données ont été mises à jour automatiquement",
|
||||||
},
|
},
|
||||||
print_report: {
|
print_report: {
|
||||||
title: "options de téléchargement",
|
title: "options de téléchargement",
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,6 @@ export const timesheetApprovalService = {
|
||||||
},
|
},
|
||||||
|
|
||||||
subscribeToPayPeriodObservable: (): EventSource => {
|
subscribeToPayPeriodObservable: (): EventSource => {
|
||||||
return new EventSource('http://localhost:3000/pay-periods/subscribe');
|
return new EventSource(`${import.meta.env.VITE_TARGO_BACKEND_URL}/pay-periods/subscribe`);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
@ -197,7 +197,10 @@ export const useTimesheetStore = defineStore('timesheet', () => {
|
||||||
const employee_name = overview?.employee_first_name + ' ' + overview?.employee_last_name;
|
const employee_name = overview?.employee_first_name + ' ' + overview?.employee_last_name;
|
||||||
|
|
||||||
Notify.create({
|
Notify.create({
|
||||||
message: `${employee_name} ${t('timesheet_approvals.event.' + pay_period_event.action)} ${t('timesheet_approvals.event.' + pay_period_event.event_type)}`
|
message: `${employee_name} ${t('timesheet_approvals.event.' + pay_period_event.action)} ${t('timesheet_approvals.event.' + pay_period_event.event_type)}`,
|
||||||
|
color: 'warning',
|
||||||
|
classes: 'text-weight-bolder text-primary',
|
||||||
|
caption: t('timesheet_approvals.event.update_notification'),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user