Merge branch 'master' into 3112-report-bug
[arvados.git] / apps / workbench / app / controllers / actions_controller.rb
index fd4ebc4cd4a890bad064f415f5e7e839f02cd9a7..b889a0c8ebbf170703b7071f97d4a86c0a8f02ac 100644 (file)
@@ -181,4 +181,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