mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-12 16:14:58 +08:00
Add flash messages for report generation [SCI-5694]
This commit is contained in:
parent
7bc6abd9bb
commit
06109889c5
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…
Add table
Reference in a new issue