Add flash messages for report generation [SCI-5694]

This commit is contained in:
Oleksii Kriuchykhin 2021-05-07 16:23:35 +02:00
parent 7bc6abd9bb
commit 06109889c5

View file

@ -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