move ssh form interface from model to action
[arvados-workbench2.git] / src / store / auth / auth-action.ts
index 00e372a2ecd5206852790da4e32ac2b5bb239c94..3658c589b6a4814f8dddc359494e744c1b0cf77c 100644 (file)
@@ -12,7 +12,7 @@ import { dialogActions } from '~/store/dialog/dialog-actions';
 import { setBreadcrumbs } from '~/store/breadcrumbs/breadcrumbs-actions';
 import { ServiceRepository } from "~/services/services";
 import { getAuthorizedKeysServiceError, AuthorizedKeysServiceError } from '~/services/authorized-keys-service/authorized-keys-service';
-import { SshKeyCreateFormDialogData, KeyType, SshKeyResource } from '~/models/ssh-key';
+import { KeyType, SshKeyResource } from '~/models/ssh-key';
 import { User } from "~/models/user";
 
 export const authActions = unionize({
@@ -28,6 +28,11 @@ export const authActions = unionize({
 
 export const SSH_KEY_CREATE_FORM_NAME = 'sshKeyCreateFormName';
 
+export interface SshKeyCreateFormDialogData {
+    publicKey: string;
+    name: string;
+}
+
 function setAuthorizationHeader(services: ServiceRepository, token: string) {
     services.apiClient.defaults.headers.common = {
         Authorization: `OAuth2 ${token}`