0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

User modal refinements in AdminX

refs. https://github.com/TryGhost/Team/issues/3351
This commit is contained in:
Peter Zimon 2023-06-06 15:17:05 +02:00
parent 2fc3336dd2
commit 2e2a96c741

View file

@ -450,6 +450,10 @@ const UserDetailModal:React.FC<UserDetailModalProps> = ({user, updateUser}) => {
});
setUserData(updatedUserData);
modal?.remove();
showToast({
message: _user.status === 'inactive' ? 'User un-suspended' : 'User suspended',
type: 'success'
});
}
});
};
@ -616,14 +620,14 @@ const UserDetailModal:React.FC<UserDetailModalProps> = ({user, updateUser}) => {
}}
>
<div>
<div className={`relative -mx-12 -mt-12 bg-gradient-to-tr from-grey-900 to-black`}>
<div className={`relative -mx-12 -mt-12 rounded-t bg-gradient-to-tr from-grey-900 to-black`}>
<ImageUpload
deleteButtonClassName={fileUploadButtonClasses}
deleteButtonContent='Delete cover image'
fileUploadClassName={fileUploadButtonClasses}
height={userData.cover_image ? '100%' : '32px'}
id='cover-image'
imageClassName='absolute inset-0 bg-cover group bg-center'
imageClassName='absolute inset-0 bg-cover group bg-center rounded-t overflow-hidden'
imageURL={userData.cover_image || ''}
onDelete={() => {
handleImageDelete('cover_image');