fix(worker_calendar): absence in holiday day
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
b8910e38ea
commit
0963b66560
|
@ -198,7 +198,7 @@ class Controller extends Section {
|
||||||
const event = this.events[stamp];
|
const event = this.events[stamp];
|
||||||
const calendar = $event.target.closest('vn-calendar').$ctrl;
|
const calendar = $event.target.closest('vn-calendar').$ctrl;
|
||||||
|
|
||||||
if (event) {
|
if (event && event.absenceId) {
|
||||||
if (event.type == this.absenceType.code)
|
if (event.type == this.absenceType.code)
|
||||||
this.delete(calendar, day, event);
|
this.delete(calendar, day, event);
|
||||||
else
|
else
|
||||||
|
@ -228,6 +228,7 @@ class Controller extends Section {
|
||||||
this.repaintCanceller(() =>
|
this.repaintCanceller(() =>
|
||||||
this.refresh()
|
this.refresh()
|
||||||
.then(calendar.repaint())
|
.then(calendar.repaint())
|
||||||
|
.then(() => this.repaint())
|
||||||
.then(() => this.getContractHolidays())
|
.then(() => this.getContractHolidays())
|
||||||
.then(() => this.getYearHolidays())
|
.then(() => this.getYearHolidays())
|
||||||
);
|
);
|
||||||
|
@ -264,6 +265,7 @@ class Controller extends Section {
|
||||||
this.repaintCanceller(() =>
|
this.repaintCanceller(() =>
|
||||||
this.refresh()
|
this.refresh()
|
||||||
.then(calendar.repaint())
|
.then(calendar.repaint())
|
||||||
|
.then(() => this.repaint())
|
||||||
.then(() => this.getContractHolidays())
|
.then(() => this.getContractHolidays())
|
||||||
.then(() => this.getYearHolidays())
|
.then(() => this.getYearHolidays())
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue