mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-03-21 12:29:03 +01:00
(bug) unable to update title of availability after admin remove a machine/plan in calendar
This commit is contained in:
parent
ce183691cb
commit
a740d984ee
@ -26,6 +26,7 @@
|
||||
- Fix a bug: feature tour in admin/settings is broken
|
||||
- Fix a bug: clearing the new expiration date field in the offer days modal result in errors
|
||||
- Fix a bug: low stock notification is always sent if one of the stocks has reached the threshold
|
||||
- Fix a bug: unable to update title of availability after admin remove a machine/plan in calendar
|
||||
- Updated react-modal to 3.16.1
|
||||
- Updated tiptap editor and its dependencies to 2.0.0-beta.204
|
||||
- [TODO DEPLOY] `rails db:seed`
|
||||
|
@ -166,7 +166,7 @@ Application.Controllers.controller('AdminCalendarController', ['$scope', '$state
|
||||
// update the machine_ids attribute
|
||||
$scope.availability.machine_ids = data.machine_ids;
|
||||
$scope.availability.title = data.title;
|
||||
uiCalendarConfig.calendars.calendar.fullCalendar('rerenderEvents');
|
||||
uiCalendarConfig.calendars.calendar.fullCalendar('refetchEvents');
|
||||
// notify the admin
|
||||
return growl.success(_t('app.admin.calendar.the_machine_was_successfully_removed_from_the_slot'));
|
||||
}
|
||||
@ -203,7 +203,7 @@ Application.Controllers.controller('AdminCalendarController', ['$scope', '$state
|
||||
// update the plan_ids attribute
|
||||
$scope.availability.plan_ids = data.plan_ids;
|
||||
$scope.availability.plans = availabilityPlans();
|
||||
uiCalendarConfig.calendars.calendar.fullCalendar('rerenderEvents');
|
||||
uiCalendarConfig.calendars.calendar.fullCalendar('refetchEvents');
|
||||
// notify the admin
|
||||
return growl.success(_t('app.admin.calendar.the_plan_was_successfully_removed_from_the_slot'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user