feature-ui/speichern-und-weiter #22

Merged
TorstenHettstedt merged 5 commits from feature-ui/speichern-und-weiter into master 2022-01-10 15:51:17 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 646537e19c - Show all commits
+2 -2
View File
@@ -12,10 +12,10 @@
Controller.nextDay()
});
},
'nextDay': () => {
'nextDay': async () => {
let actDate = new TimekeepingDate(activeRecord.workingDay)
let nextDay = actDate.getNextDay()
activeRecord = WorkingHoursRepository.readOrNew(nextDay.getDateString())
activeRecord = await WorkingHoursRepository.readOrNew(nextDay.getDateString())
},
'cancelActiveRecord': () => {
activeRecord = null;
+2 -2
View File
@@ -18,9 +18,9 @@
isLoading = false
});
},
'newRecord': () => {
'newRecord': async () => {
const actDate = new TimekeepingDate()
activeRecord = WorkingHoursRepository.readOrNew(actDate.getDateString())
activeRecord = await WorkingHoursRepository.readOrNew(actDate.getDateString())
},
'selectActiveRecord': record => WorkingHoursRepository.read(record.workingDay).then(data => {
if (data === null) {