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:
parent
2fc3336dd2
commit
2e2a96c741
1 changed files with 6 additions and 2 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue