From 25debb41413c30faf3fe9b9dde1ea5d4dc852a9c Mon Sep 17 00:00:00 2001 From: Du Peng Date: Wed, 28 Jun 2023 12:05:15 +0200 Subject: [PATCH] (feat) add success info after reservation is paid --- app/frontend/src/javascript/controllers/admin/events.js | 3 ++- config/locales/app.admin.en.yml | 1 + config/locales/app.admin.fr.yml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/frontend/src/javascript/controllers/admin/events.js b/app/frontend/src/javascript/controllers/admin/events.js index ff1162224..ebc30999b 100644 --- a/app/frontend/src/javascript/controllers/admin/events.js +++ b/app/frontend/src/javascript/controllers/admin/events.js @@ -609,10 +609,11 @@ Application.Controllers.controller('ShowEventReservationsController', ['$scope', if (r.id === reservation.id) { return reservation; } + growl.success(_t('app.admin.event_reservations.reservation_was_successfully_paid')); return r; }); }, function () { - $log.info('Pay reservation modal dismissed at: ' + new Date()); + console.log('Pay reservation modal dismissed at: ' + new Date()); }); }; }]); diff --git a/config/locales/app.admin.en.yml b/config/locales/app.admin.en.yml index 4ccba66e0..a7f5ea76c 100644 --- a/config/locales/app.admin.en.yml +++ b/config/locales/app.admin.en.yml @@ -656,6 +656,7 @@ en: confirm_payment_of_html: "{ROLE, select, admin{Cash} other{Pay}}: {AMOUNT}" #(contexte : validate a payment of $20,00) offer_this_reservation: "I offer this reservation" i_have_received_the_payment: "I have received the payment" + reservation_was_successfully_paid: "Reservation was successfully paid." events_settings: title: "Settings" generic_text_block: "Editorial text block" diff --git a/config/locales/app.admin.fr.yml b/config/locales/app.admin.fr.yml index 481d2f497..48787f54b 100644 --- a/config/locales/app.admin.fr.yml +++ b/config/locales/app.admin.fr.yml @@ -656,6 +656,7 @@ fr: confirm_payment_of_html: "{ROLE, select, admin{Encaisser} other{Payer}} : {AMOUNT}" #(contexte : validate a payment of $20,00) offer_this_reservation: "J'offre cette réservation" i_have_received_the_payment: "J'ai reçu le paiement" + reservation_was_successfully_paid: "La réservation a bien été payée." events_settings: title: "Paramètres" generic_text_block: "Bloc de texte rédactionnel"