X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/32f8f97903802e58b48ed307669c236750d8ee3e..46751b9305a7e991d484494facd1f40790254d40:/src/views-components/dialog-create/dialog-user-create.tsx

diff --git a/src/views-components/dialog-create/dialog-user-create.tsx b/src/views-components/dialog-create/dialog-user-create.tsx
index bf135e8c..14365af7 100644
--- a/src/views-components/dialog-create/dialog-user-create.tsx
+++ b/src/views-components/dialog-create/dialog-user-create.tsx
@@ -6,9 +6,9 @@ import * as React from 'react';
 import { InjectedFormProps } from 'redux-form';
 import { WithDialogProps } from '~/store/dialog/with-dialog';
 import { FormDialog } from '~/components/form-dialog/form-dialog';
-import { UserFirstNameField, UserLastNameField, UserEmailField, UserIdentityUrlField, UserVirtualMachineField, UserGroupsVirtualMachineField } from '~/views-components/form-fields/user-form-fields';
+import { UserEmailField, UserIdentityUrlField, UserVirtualMachineField, UserGroupsVirtualMachineField } from '~/views-components/form-fields/user-form-fields';
 
-type DialogUserProps = WithDialogProps<{}> & InjectedFormProps<any>;
+export type DialogUserProps = WithDialogProps<{}> & InjectedFormProps<any>;
 
 export const UserRepositoryCreate = (props: DialogUserProps) =>
     <FormDialog
@@ -18,11 +18,9 @@ export const UserRepositoryCreate = (props: DialogUserProps) =>
         {...props}
     />;
 
-const UserAddFields = () => <span>
-    <UserFirstNameField />
-    <UserLastNameField />
+const UserAddFields = (props: DialogUserProps) => <span>
     <UserEmailField />
     <UserIdentityUrlField />
-    <UserVirtualMachineField />
+    <UserVirtualMachineField data={props.data}/>
     <UserGroupsVirtualMachineField />
 </span>;
