From 0c0daef87be8abcbcc3498d817e453d7336554f8 Mon Sep 17 00:00:00 2001 From: Pawel Kowalczyk Date: Fri, 7 Dec 2018 09:48:09 +0100 Subject: [PATCH] delete firstName and lastName from form when creating a user Feature #14504 Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk --- src/store/users/users-actions.ts | 2 -- .../dialog-create/dialog-user-create.tsx | 4 +--- .../form-fields/user-form-fields.tsx | 16 ---------------- 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/store/users/users-actions.ts b/src/store/users/users-actions.ts index 7494f983..f39c753e 100644 --- a/src/store/users/users-actions.ts +++ b/src/store/users/users-actions.ts @@ -19,8 +19,6 @@ export const USER_ATTRIBUTES_DIALOG = 'userAttributesDialog'; export const USER_CREATE_FORM_NAME = 'repositoryCreateFormName'; export interface UserCreateFormDialogData { - firstName: string; - lastName: string; email: string; identityUrl: string; virtualMachineName: string; diff --git a/src/views-components/dialog-create/dialog-user-create.tsx b/src/views-components/dialog-create/dialog-user-create.tsx index 80904397..14365af7 100644 --- a/src/views-components/dialog-create/dialog-user-create.tsx +++ b/src/views-components/dialog-create/dialog-user-create.tsx @@ -6,7 +6,7 @@ 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'; export type DialogUserProps = WithDialogProps<{}> & InjectedFormProps; @@ -19,8 +19,6 @@ export const UserRepositoryCreate = (props: DialogUserProps) => />; const UserAddFields = (props: DialogUserProps) => - - diff --git a/src/views-components/form-fields/user-form-fields.tsx b/src/views-components/form-fields/user-form-fields.tsx index 486d90f7..85634449 100644 --- a/src/views-components/form-fields/user-form-fields.tsx +++ b/src/views-components/form-fields/user-form-fields.tsx @@ -10,22 +10,6 @@ import { NativeSelectField } from "~/components/select-field/select-field"; import { InputLabel } from "@material-ui/core"; import { VirtualMachinesResource } from "~/models/virtual-machines"; -export const UserFirstNameField = () => - ; - -export const UserLastNameField = () => - ; - export const UserEmailField = () =>