X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/63f9b5374e01394486a07dba4f9a43cfd76707e3..b6f73f7acffa9b2f37c78826ff6cee89987a7edc:/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 a2beb494e4..6eaec1ee59 100644 --- a/apps/workbench/app/controllers/authorized_keys_controller.rb +++ b/apps/workbench/app/controllers/authorized_keys_controller.rb @@ -1,4 +1,8 @@ class AuthorizedKeysController < ApplicationController + def index_pane_list + %w(Recent Help) + end + def new super @object.authorized_user_uuid = current_user.uuid if current_user @@ -6,7 +10,8 @@ class AuthorizedKeysController < ApplicationController end def create - @object = AuthorizedKey.new authorized_user_uuid: 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