From 23ae6185dfcc568a5ea6f6f0c78d08e2ea7669e2 Mon Sep 17 00:00:00 2001 From: Tomasz Donarski Date: Tue, 28 Nov 2023 07:16:33 +0100 Subject: [PATCH] Adjust flash message --- app/controllers/spree/admin/promotion_batches_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/spree/admin/promotion_batches_controller.rb b/app/controllers/spree/admin/promotion_batches_controller.rb index 9161d4fdb2..3bf72c6876 100644 --- a/app/controllers/spree/admin/promotion_batches_controller.rb +++ b/app/controllers/spree/admin/promotion_batches_controller.rb @@ -18,7 +18,7 @@ def csv_export def csv_import content = params[:file]&.read.to_s Spree::PromotionBatches::PromoCodesImporter.new(content: content, promotion_batch_id: params[:id]).call - redirect_back fallback_location: admin_promotions_path, notice: "Promo codes uploaded" + redirect_back fallback_location: admin_promotions_path, notice: "Promo codes are being uploaded" rescue Spree::PromotionBatches::PromoCodesImporter::Error => e redirect_back fallback_location: admin_promotions_path, alert: e.message end