5261: Redirect to destination project's Collections tab when copying/moving collections.
[arvados.git] / apps / workbench / app / controllers / authorized_keys_controller.rb
index ec8d2415d117f7d6388f4782f3f5721328364754..6eaec1ee59f1e954afb1b419dc57e9f9a277a888 100644 (file)
@@ -1,2 +1,17 @@
 class AuthorizedKeysController < ApplicationController
+  def index_pane_list
+    %w(Recent Help)
+  end
+
+  def new
+    super
+    @object.authorized_user_uuid = current_user.uuid if current_user
+    @object.key_type = 'SSH'
+  end
+
+  def create
+    defaults = { authorized_user_uuid: current_user.uuid, key_type: 'SSH' }
+    @object = AuthorizedKey.new defaults.merge(params[:authorized_key] || {})
+    super
+  end
 end