3654: add selection dropdown to collections pages
[arvados.git] / apps / workbench / app / controllers / actions_controller.rb
index fcca2abe16ace237760d7ffd1ec6df429e35f4b0..7c68ce9f7bfa37c8a6eca526774dfa6b3b6dc9ff 100644 (file)
@@ -164,7 +164,13 @@ class ActionsController < ApplicationController
       l.save!
     end
 
-    redirect_to controller: 'collections', action: :show, id: newc.uuid
+    if params["show_project"]
+      respond_to do |format|
+        format.js {render inline: "location.reload();" }
+      end
+    else
+      redirect_to controller: 'collections', action: :show, id: newc.uuid
+    end
   end
 
   def report_issue_popup