mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-29 03:01:58 +08:00
Merge pull request #3297 from okriuchykhin/ok_SCI_5694
Add flash messages for report generation [SCI-5694]
This commit is contained in:
commit
4886a78be9
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue