Merge branch 'staging' into fixes/fix-calandar-pending-btn
This commit is contained in:
commit
9e30ba5699
@ -1580,4 +1580,4 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=calendar-dashboard.js.map?v=8eb4cfd67b72b2e93b51
|
||||
//# sourceMappingURL=calendar-dashboard.js.map?v=8eb4cfd67b72b2e93b51
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -9360,11 +9360,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
// Rendering
|
||||
dayHeaderDidMount: _fullcalendar_rendering_dayHeaderDidMount_js__WEBPACK_IMPORTED_MODULE_11__["default"],
|
||||
eventDidMount: info => {
|
||||
if (info.event.extendedProps.isCalendarPending) {
|
||||
info.el.classList.add('pending-event');
|
||||
info.el.style.backgroundColor = info.event.backgroundColor;
|
||||
info.el.style.color = info.event.textColor;
|
||||
}
|
||||
this.addPendinEventClass(info);
|
||||
},
|
||||
noEventsDidMount: _fullcalendar_rendering_noEventsDidMount_js__WEBPACK_IMPORTED_MODULE_14__["default"],
|
||||
eventOrder: ['start', '-duration', 'allDay', _fullcalendar_rendering_eventOrder_js__WEBPACK_IMPORTED_MODULE_13__["default"]],
|
||||
@ -9510,7 +9506,14 @@ __webpack_require__.r(__webpack_exports__);
|
||||
initialView
|
||||
});
|
||||
}
|
||||
}, 5000)
|
||||
}, 5000),
|
||||
addPendinEventClass(info) {
|
||||
if (info.event.extendedProps.isCalendarPending) {
|
||||
info.el.classList.add('pending-event');
|
||||
info.el.style.backgroundColor = info.event.backgroundColor;
|
||||
info.el.style.color = info.event.textColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -16548,7 +16551,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
}
|
||||
this.isViewing = true;
|
||||
try {
|
||||
await this.save(false);
|
||||
await this.savePendingCalendar(false);
|
||||
this.requiresActionOnRouteLeave = false;
|
||||
} catch (error) {
|
||||
this.isViewing = false;
|
||||
@ -16841,7 +16844,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
}
|
||||
this.isViewing = true;
|
||||
try {
|
||||
await this.save(false);
|
||||
await this.savePendingCalendar(false);
|
||||
this.requiresActionOnRouteLeave = false;
|
||||
} catch (error) {
|
||||
this.isViewing = false;
|
||||
@ -313545,4 +313548,4 @@ appointmentsConfigsStore.addInitialConfigs((0,_nextcloud_initial_state__WEBPACK_
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=calendar-main.js.map?v=242f0fbe979df34ca8d0
|
||||
//# sourceMappingURL=calendar-main.js.map?v=242f0fbe979df34ca8d0
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -9130,4 +9130,4 @@ __webpack_require__.p = (0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_1__.linkTo
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=calendar-reference.js.map?v=14041b3233b8eab7aed6
|
||||
//# sourceMappingURL=calendar-reference.js.map?v=14041b3233b8eab7aed6
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -8278,4 +8278,4 @@ function getLinkToConfig(key) {
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=calendar-src_store_index_js.js.map?v=106f054b5df5c6ea6a4d
|
||||
//# sourceMappingURL=calendar-src_store_index_js.js.map?v=106f054b5df5c6ea6a4d
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -4332,11 +4332,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
// Rendering
|
||||
dayHeaderDidMount: _fullcalendar_rendering_dayHeaderDidMount_js__WEBPACK_IMPORTED_MODULE_11__["default"],
|
||||
eventDidMount: info => {
|
||||
if (info.event.extendedProps.isCalendarPending) {
|
||||
info.el.classList.add('pending-event');
|
||||
info.el.style.backgroundColor = info.event.backgroundColor;
|
||||
info.el.style.color = info.event.textColor;
|
||||
}
|
||||
this.addPendinEventClass(info);
|
||||
},
|
||||
noEventsDidMount: _fullcalendar_rendering_noEventsDidMount_js__WEBPACK_IMPORTED_MODULE_14__["default"],
|
||||
eventOrder: ['start', '-duration', 'allDay', _fullcalendar_rendering_eventOrder_js__WEBPACK_IMPORTED_MODULE_13__["default"]],
|
||||
@ -4482,7 +4478,14 @@ __webpack_require__.r(__webpack_exports__);
|
||||
initialView
|
||||
});
|
||||
}
|
||||
}, 5000)
|
||||
}, 5000),
|
||||
addPendinEventClass(info) {
|
||||
if (info.event.extendedProps.isCalendarPending) {
|
||||
info.el.classList.add('pending-event');
|
||||
info.el.style.backgroundColor = info.event.backgroundColor;
|
||||
info.el.style.color = info.event.textColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -8358,7 +8361,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
}
|
||||
this.isViewing = true;
|
||||
try {
|
||||
await this.save(false);
|
||||
await this.savePendingCalendar(false);
|
||||
this.requiresActionOnRouteLeave = false;
|
||||
} catch (error) {
|
||||
this.isViewing = false;
|
||||
@ -28068,4 +28071,4 @@ module.exports = "data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/sv
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=calendar-src_views_Calendar_vue-data_image_svg_xml_3csvg_20xmlns_27http_www_w3_org_2000_svg_27_20heigh-4a4254.js.map?v=1b03c1d9e0cd88857df1
|
||||
//# sourceMappingURL=calendar-src_views_Calendar_vue-data_image_svg_xml_3csvg_20xmlns_27http_www_w3_org_2000_svg_27_20heigh-4a4254.js.map?v=1b03c1d9e0cd88857df1
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -140,11 +140,7 @@ export default {
|
||||
// Rendering
|
||||
dayHeaderDidMount,
|
||||
eventDidMount : (info) => {
|
||||
if (info.event.extendedProps.isCalendarPending) {
|
||||
info.el.classList.add('pending-event');
|
||||
info.el.style.backgroundColor = info.event.backgroundColor;
|
||||
info.el.style.color = info.event.textColor;
|
||||
}
|
||||
this.addPendinEventClass(info);
|
||||
},
|
||||
noEventsDidMount,
|
||||
eventOrder: ['start', '-duration', 'allDay', eventOrder],
|
||||
@ -308,6 +304,13 @@ export default {
|
||||
this.$store.dispatch('setInitialView', { initialView })
|
||||
}
|
||||
}, 5000),
|
||||
addPendinEventClass(info){
|
||||
if (info.event.extendedProps.isCalendarPending) {
|
||||
info.el.classList.add('pending-event');
|
||||
info.el.style.backgroundColor = info.event.backgroundColor;
|
||||
info.el.style.color = info.event.textColor;
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -573,6 +573,8 @@ export default {
|
||||
setPendingCalendar(isPending = true) {
|
||||
this.calendarObjectInstance.eventComponent.isCalendarPending = isPending
|
||||
this.calendarObjectInstance.isCalendarPending = isPending
|
||||
|
||||
|
||||
},
|
||||
async savePendingCalendar(thisAndAllFuture = false) {
|
||||
if (!this.calendarObject) {
|
||||
|
||||
@ -1744,7 +1744,6 @@ const actions = {
|
||||
if (isForkedItem && eventComponent.canCreateRecurrenceExceptions()) {
|
||||
[original, fork] = eventComponent.createRecurrenceException(thisAndAllFuture)
|
||||
}
|
||||
|
||||
await dispatch('updateCalendarObject', { calendarObject })
|
||||
|
||||
if (original !== null && fork !== null && original.root !== fork.root) {
|
||||
|
||||
@ -752,7 +752,7 @@ export default {
|
||||
|
||||
this.isViewing = true;
|
||||
try {
|
||||
await this.save(false);
|
||||
await this.savePendingCalendar(false);
|
||||
this.requiresActionOnRouteLeave = false;
|
||||
} catch (error) {
|
||||
this.isViewing = false;
|
||||
|
||||
@ -540,7 +540,7 @@ export default {
|
||||
|
||||
this.isViewing = true;
|
||||
try {
|
||||
await this.save(false);
|
||||
await this.savePendingCalendar(false);
|
||||
this.requiresActionOnRouteLeave = false;
|
||||
} catch (error) {
|
||||
this.isViewing = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user