From 22f73889677d3f552d4dba886bf592f16d72d1a0 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 21 Apr 2021 18:51:15 +0200 Subject: [PATCH] Auto-refresh dates --- assets/js/pages/groups/pages/presence.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/pages/groups/pages/presence.js b/assets/js/pages/groups/pages/presence.js index d64388a0..ba7eb454 100644 --- a/assets/js/pages/groups/pages/presence.js +++ b/assets/js/pages/groups/pages/presence.js @@ -92,6 +92,8 @@ class GroupPresencePage { eventResize: async function(info) { try { await ForezPresenceHelper.UpdateEvents(group.id, info.oldEvent.start, info.oldEvent.end, info.event.start, info.event.end) + + calendar.getEventSources()[0].refetch() } catch(e) { console.error(e); notify(tr("Failed to update presence!"), "danger") @@ -102,6 +104,8 @@ class GroupPresencePage { eventDrop: async function(info) { try { await ForezPresenceHelper.UpdateEvents(group.id, info.oldEvent.start, info.oldEvent.end, info.event.start, info.event.end) + + calendar.getEventSources()[0].refetch() } catch(e) { console.error(e); notify(tr("Failed to update presence!"), "danger")