mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +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);
|
||||
|
||||
return (
|
||||
<Modal title="Edit user" onExit={toggleEditUserModal}>
|
||||
<>
|
||||
<EditUserModal
|
||||
defaultEmail={userData?.email}
|
||||
defaultName={userData?.name}
|
||||
defaultGlobalRole={userData?.global_role}
|
||||
defaultTeams={userData?.teams}
|
||||
onCancel={toggleEditUserModal}
|
||||
onSubmit={onEditUser}
|
||||
availableTeams={teams || []}
|
||||
isPremiumTier={isPremiumTier || false}
|
||||
smtpConfigured={config?.smtp_settings.configured || false}
|
||||
sesConfigured={config?.email?.backend === "ses" || false}
|
||||
canUseSso={config?.sso_settings.enable_sso || false}
|
||||
isSsoEnabled={userData?.sso_enabled}
|
||||
isApiOnly={userData?.api_only || false}
|
||||
isModifiedByGlobalAdmin
|
||||
isInvitePending={userEditing.type === "invite"}
|
||||
editUserErrors={editUserErrors}
|
||||
isUpdatingUsers={isUpdatingUsers}
|
||||
/>
|
||||
</>
|
||||
</Modal>
|
||||
<EditUserModal
|
||||
defaultEmail={userData?.email}
|
||||
defaultName={userData?.name}
|
||||
defaultGlobalRole={userData?.global_role}
|
||||
defaultTeams={userData?.teams}
|
||||
onCancel={toggleEditUserModal}
|
||||
onSubmit={onEditUser}
|
||||
availableTeams={teams || []}
|
||||
isPremiumTier={isPremiumTier || false}
|
||||
smtpConfigured={config?.smtp_settings.configured || false}
|
||||
sesConfigured={config?.email?.backend === "ses" || false}
|
||||
canUseSso={config?.sso_settings.enable_sso || false}
|
||||
isSsoEnabled={userData?.sso_enabled}
|
||||
isApiOnly={userData?.api_only || false}
|
||||
isModifiedByGlobalAdmin
|
||||
isInvitePending={userEditing.type === "invite"}
|
||||
editUserErrors={editUserErrors}
|
||||
isUpdatingUsers={isUpdatingUsers}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user