Unverified Commit 0a072d38 authored by JR's avatar JR Committed by GitHub
Browse files

fix(frontend): overlapping schedules check failed (#1594)

* fix(frontend): add confirm dialog on modify recursive entries and added change all events API

Fixes #1337
parent 04e88f85
......@@ -9,7 +9,7 @@ export {
svcBookings.$inject = ["$resource"];
function svcBookings($resource) {
return $resource('/v1/bookings/:id');
return $resource('/v1/bookings/:id_booking');
}
svcEntry.$inject = ["$resource"];
......
......@@ -126,7 +126,7 @@ function calendarCtrl($element, $window, apiBookings,$uibModal,moment,apiEntry)
async function editEntry(eventClickInfo) {
// parameter object details in https://fullcalendar.io/docs/eventClick
const res = await apiEntry.get({ id: eventClickInfo.event.id}).$promise;
const resBooking = await apiBookings.get({ id: eventClickInfo.event.groupId}).$promise;
const resBooking = await apiBookings.get({ id_booking: eventClickInfo.event.groupId}).$promise;
res.editable = self.userId === resBooking.id_owner && self.editable;
res.background_color = resBooking.background_color;
res.id_owner = resBooking.id_owner;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment