diff options
| author | Luc Donnet | 2017-12-19 12:18:51 +0100 |
|---|---|---|
| committer | GitHub | 2017-12-19 12:18:51 +0100 |
| commit | 0e375a231b8c83bd1dc6f1b1f27cc23cd0c3ddbf (patch) | |
| tree | 0372582fa88706ac55188c55e5bb79b79f32f213 /app | |
| parent | bb2713b33296c857ce807e0237bf8095b65070ad (diff) | |
| parent | 1b690a6dbd7175eb29e543246a057e4a868974cd (diff) | |
| download | chouette-core-0e375a231b8c83bd1dc6f1b1f27cc23cd0c3ddbf.tar.bz2 | |
Merge pull request #159 from af83/5317-add-flash-messages-to-inform-users-when-asynchronous-jo
5317 add flash messages to inform users when asynchronous jo
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/referentials_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index ee1236912..40e8264ce 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -17,6 +17,8 @@ class ReferentialsController < ChouetteController build_referenial if !!@referential.created_from_id + flash[:notice] = t('notice.referentials.duplicate') + format.html { redirect_to workbench_path(@referential.workbench) } end end @@ -60,7 +62,7 @@ class ReferentialsController < ChouetteController def validate ComplianceControlSetCopyWorker.perform_async(params[:compliance_control_set], params[:id]) - flash[:notice] = I18n.t("referentials.operation_in_progress") + flash[:notice] = t('notice.referentials.validate') redirect_to(referential_path) end |
