mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Fleet UI: Transition fixed to edit user modal (#11128)
This commit is contained in:
parent
5176e86e26
commit
8ae9738dc5
1
changes/11087-fix-edit-user-modal-transition
Normal file
1
changes/11087-fix-edit-user-modal-transition
Normal file
@ -0,0 +1 @@
|
|||||||
|
- Fleet UI: Fix animation for opening edit user modal
|
@ -432,29 +432,25 @@ const UsersTable = ({ router }: IUsersTableProps): JSX.Element => {
|
|||||||
const userData = getUser(userEditing.type, userEditing.id);
|
const userData = getUser(userEditing.type, userEditing.id);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal title="Edit user" onExit={toggleEditUserModal}>
|
<EditUserModal
|
||||||
<>
|
defaultEmail={userData?.email}
|
||||||
<EditUserModal
|
defaultName={userData?.name}
|
||||||
defaultEmail={userData?.email}
|
defaultGlobalRole={userData?.global_role}
|
||||||
defaultName={userData?.name}
|
defaultTeams={userData?.teams}
|
||||||
defaultGlobalRole={userData?.global_role}
|
onCancel={toggleEditUserModal}
|
||||||
defaultTeams={userData?.teams}
|
onSubmit={onEditUser}
|
||||||
onCancel={toggleEditUserModal}
|
availableTeams={teams || []}
|
||||||
onSubmit={onEditUser}
|
isPremiumTier={isPremiumTier || false}
|
||||||
availableTeams={teams || []}
|
smtpConfigured={config?.smtp_settings.configured || false}
|
||||||
isPremiumTier={isPremiumTier || false}
|
sesConfigured={config?.email?.backend === "ses" || false}
|
||||||
smtpConfigured={config?.smtp_settings.configured || false}
|
canUseSso={config?.sso_settings.enable_sso || false}
|
||||||
sesConfigured={config?.email?.backend === "ses" || false}
|
isSsoEnabled={userData?.sso_enabled}
|
||||||
canUseSso={config?.sso_settings.enable_sso || false}
|
isApiOnly={userData?.api_only || false}
|
||||||
isSsoEnabled={userData?.sso_enabled}
|
isModifiedByGlobalAdmin
|
||||||
isApiOnly={userData?.api_only || false}
|
isInvitePending={userEditing.type === "invite"}
|
||||||
isModifiedByGlobalAdmin
|
editUserErrors={editUserErrors}
|
||||||
isInvitePending={userEditing.type === "invite"}
|
isUpdatingUsers={isUpdatingUsers}
|
||||||
editUserErrors={editUserErrors}
|
/>
|
||||||
isUpdatingUsers={isUpdatingUsers}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
</Modal>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user