From b645e5efe5cb153a18b6357d852ea62565ac2094 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 2 Mar 2020 16:59:04 +0100 Subject: [PATCH] fixed: remove restrincting plan message --- .../javascripts/controllers/admin/calendar.js.erb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/controllers/admin/calendar.js.erb b/app/assets/javascripts/controllers/admin/calendar.js.erb index dbe3f349a..506c30f14 100644 --- a/app/assets/javascripts/controllers/admin/calendar.js.erb +++ b/app/assets/javascripts/controllers/admin/calendar.js.erb @@ -175,15 +175,13 @@ Application.Controllers.controller('AdminCalendarController', ['$scope', '$state object () { return { title: _t('app.admin.calendar.confirmation_required'), - msg: _t('app.admin.calendar.do_you_really_want_to_remove_PLAN_from_this_slot', { GENDER: getGender($scope.currentUser), PLAN: plan.name }) + ' ' + - _t('app.admin.calendar.this_will_prevent_any_new_reservation_on_this_slot_but_wont_cancel_those_existing') + '
' + - _t('app.admin.calendar.beware_this_cannot_be_reverted') + '' + msg: _t('app.admin.calendar.do_you_really_want_to_remove_PLAN_from_this_slot', { GENDER: getGender($scope.currentUser), PLAN: plan.name }) }; } } - } - , function () { - // the admin has confirmed, remove the plan + }, + function () { + // the admin has confirmed, remove the plan const plans = _.drop($scope.availability.plan_ids, plan.id); return Availability.update({ id: $scope.availability.id }, { availability: { plans_attributes: [{ id: plan.id, _destroy: true }] } }