mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Auto-refresh dates
This commit is contained in:
parent
ad37bdb121
commit
22f7388967
@ -92,6 +92,8 @@ class GroupPresencePage {
|
|||||||
eventResize: async function(info) {
|
eventResize: async function(info) {
|
||||||
try {
|
try {
|
||||||
await ForezPresenceHelper.UpdateEvents(group.id, info.oldEvent.start, info.oldEvent.end, info.event.start, info.event.end)
|
await ForezPresenceHelper.UpdateEvents(group.id, info.oldEvent.start, info.oldEvent.end, info.event.start, info.event.end)
|
||||||
|
|
||||||
|
calendar.getEventSources()[0].refetch()
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
notify(tr("Failed to update presence!"), "danger")
|
notify(tr("Failed to update presence!"), "danger")
|
||||||
@ -102,6 +104,8 @@ class GroupPresencePage {
|
|||||||
eventDrop: async function(info) {
|
eventDrop: async function(info) {
|
||||||
try {
|
try {
|
||||||
await ForezPresenceHelper.UpdateEvents(group.id, info.oldEvent.start, info.oldEvent.end, info.event.start, info.event.end)
|
await ForezPresenceHelper.UpdateEvents(group.id, info.oldEvent.start, info.oldEvent.end, info.event.start, info.event.end)
|
||||||
|
|
||||||
|
calendar.getEventSources()[0].refetch()
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
notify(tr("Failed to update presence!"), "danger")
|
notify(tr("Failed to update presence!"), "danger")
|
||||||
|
Loading…
Reference in New Issue
Block a user