From 06109889c5e59a57b37a720bacdf9536eecc3228 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Fri, 7 May 2021 16:23:35 +0200 Subject: [PATCH] Add flash messages for report generation [SCI-5694] --- app/controllers/reports_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index a57be7215..eccaada3b 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -100,6 +100,7 @@ class ReportsController < ApplicationController if @report.errors.blank? log_activity(:create_report) + flash[:success] = t('projects.reports.index.generation.accepted_message') redirect_to reports_path else @@ -136,6 +137,7 @@ class ReportsController < ApplicationController if @report.errors.blank? log_activity(:edit_report) + flash[:success] = t('projects.reports.index.generation.accepted_message') redirect_to reports_path else