Merge pull request 'the absences are now fetched alongside the hours' (#689) from 3018-time_control_info into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #689
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
Joan Sanchez 2021-07-14 09:17:42 +00:00
commit a5ea19b527
1 changed files with 2 additions and 1 deletions

View File

@ -106,6 +106,7 @@ class Controller extends Section {
};
this.$.model.applyFilter(filter, params).then(() => {
this.getWorkedHours(this.started, this.ended);
this.getAbsences();
});
}
@ -129,7 +130,7 @@ class Controller extends Section {
onData(data) {
const events = {};
let addEvent = (day, event) => {
const addEvent = (day, event) => {
events[new Date(day).getTime()] = event;
};