queue requests for full calendar data

can NOT be backported to 21.1, as jsonq is not returning a promise in 21.1!
This commit is contained in:
ralf 2022-06-03 09:59:10 +02:00
parent 8db07c9a34
commit 583ac1c6d6

View File

@ -661,7 +661,6 @@ export class CalendarApp extends EgwApp
this._update_events(this.state, ['calendar::' + pushData.id]); this._update_events(this.state, ['calendar::' + pushData.id]);
return; return;
} }
;
// Ask for the real data, we don't have it // Ask for the real data, we don't have it
let process_data = (data) => let process_data = (data) =>
@ -672,7 +671,7 @@ export class CalendarApp extends EgwApp
// Any existing events were updated. Run this to catch new events or events moved into view // Any existing events were updated. Run this to catch new events or events moved into view
this._update_events(this.state, [data.uid]); this._update_events(this.state, [data.uid]);
} }
egw.request("calendar.calendar_ui.ajax_get", [[pushData.id]]).then((data) => egw.jsonq("calendar.calendar_ui.ajax_get", [[pushData.id]]).then((data) =>
{ {
if(typeof data.uid !== "undefined") if(typeof data.uid !== "undefined")
{ {