the absences are now fetched alongside the hours
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2021-07-14 10:09:24 +02:00 committed by joan
parent 9f5df91be4
commit 559eaf5853
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;
};