aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorTeddy Wing2017-12-18 17:23:04 +0100
committerTeddy Wing2017-12-18 17:35:57 +0100
commit1b690a6dbd7175eb29e543246a057e4a868974cd (patch)
tree31994add59c03612940eae78726e7a29b67034a7 /app/controllers
parent5ecfe32c539527017ab03b96b4a14b1daccac54c (diff)
downloadchouette-core-1b690a6dbd7175eb29e543246a057e4a868974cd.tar.bz2
Referentials#create: Add flash message on referential duplication
When a "duplicate referential" action is initiated, show a flash message to let users know that it started and is in progress (and will take a while since it's an asynchronous task). Refs #5317
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/referentials_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb
index 773de04fd..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