X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/10d1f3b4e8f071cad77d1abfaa14838b28b4ddf8..f1eb092c311510b60b8c9b00b64407780e2a0302:/apps/workbench/app/controllers/authorized_keys_controller.rb diff --git a/apps/workbench/app/controllers/authorized_keys_controller.rb b/apps/workbench/app/controllers/authorized_keys_controller.rb index 5ca5222d6e..6eaec1ee59 100644 --- a/apps/workbench/app/controllers/authorized_keys_controller.rb +++ b/apps/workbench/app/controllers/authorized_keys_controller.rb @@ -1,12 +1,17 @@ class AuthorizedKeysController < ApplicationController + def index_pane_list + %w(Recent Help) + end + def new super - @object.authorized_user = current_user.uuid if current_user + @object.authorized_user_uuid = current_user.uuid if current_user @object.key_type = 'SSH' end def create - @object = AuthorizedKey.new authorized_user: current_user.uuid, key_type: 'SSH' + defaults = { authorized_user_uuid: current_user.uuid, key_type: 'SSH' } + @object = AuthorizedKey.new defaults.merge(params[:authorized_key] || {}) super end end