This commit is contained in:
2021-09-22 20:24:55 +00:00
parent b5988fc84b
commit eaa9a3acdc

View File

@@ -931,7 +931,7 @@ export default {
nativeEvent.stopPropagation();
},
async fetchEvents({ start, end }) {
console.log("Fetching events");
console.log("FetchEvents:", { start: start.date, end: end.date });
try {
window.$gz.form.deleteAllErrorBoxErrors(this);
let res = await window.$gz.api.post("schedule/personal", {
@@ -976,6 +976,17 @@ export default {
async saveUserOptions() {
this.settingsDialog = false;
await saveFormUserOptions(this);
//trigger refresh in calendar event triggered format
//expected:
let start = { date: this.$refs.calendar.start };
let end = { date: this.$refs.calendar.end };
if (!end.date) {
end.date = start.date;
}
await this.fetchEvents({ start, end });
}
//eom
}