Merge branch 'master' into 3112-report-bug
[arvados.git] / apps / workbench / app / controllers / actions_controller.rb
index 265cff456ce760a1c850582def2bd709d3e750fb..939cac34ffa312a1485929f77c00d53d08811fda 100644 (file)
@@ -178,4 +178,21 @@ class ActionsController < ApplicationController
     redirect_to controller: 'collections', action: :show, id: newc.uuid
   end
 
+  def report_issue_popup
+    @popup_params = params
+    respond_to do |format|
+      format.js
+      format.html
+    end
+  end
+
+  def report_issue
+    logger.warn "report_issue: #{params.inspect}"
+
+    respond_to do |format|
+      IssueReporter.send_report(current_user, params).deliver
+      format.js
+    end
+  end
+
 end