Merge pull request #3297 from okriuchykhin/ok_SCI_5694

Add flash messages for report generation [SCI-5694]
This commit is contained in:
Miha Mencin 2021-05-10 10:46:49 +02:00 committed by GitHub
commit 4886a78be9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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