This commit is contained in:
@@ -931,7 +931,7 @@ export default {
|
|||||||
nativeEvent.stopPropagation();
|
nativeEvent.stopPropagation();
|
||||||
},
|
},
|
||||||
async fetchEvents({ start, end }) {
|
async fetchEvents({ start, end }) {
|
||||||
console.log("Fetching events");
|
console.log("FetchEvents:", { start: start.date, end: end.date });
|
||||||
try {
|
try {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(this);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
let res = await window.$gz.api.post("schedule/personal", {
|
let res = await window.$gz.api.post("schedule/personal", {
|
||||||
@@ -976,6 +976,17 @@ export default {
|
|||||||
async saveUserOptions() {
|
async saveUserOptions() {
|
||||||
this.settingsDialog = false;
|
this.settingsDialog = false;
|
||||||
await saveFormUserOptions(this);
|
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
|
//eom
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user