mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28:53 -05:00
fix
This commit is contained in:
parent
c39e8e26dd
commit
cd173fc38e
@ -574,7 +574,7 @@ export default function ProfilePagesHeader(props) {
|
|||||||
></span>
|
></span>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{userCanDeleteProfile ? (
|
{userCanDeleteProfile && !userIsAuthor ? (
|
||||||
<span className="delete-profile-wrap">
|
<span className="delete-profile-wrap">
|
||||||
<PopupTrigger contentRef={popupContentRef}>
|
<PopupTrigger contentRef={popupContentRef}>
|
||||||
<button className="delete-profile" title="Remove profile">
|
<button className="delete-profile" title="Remove profile">
|
||||||
@ -602,7 +602,7 @@ export default function ProfilePagesHeader(props) {
|
|||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{userCanEditProfile ? (
|
{userCanEditProfile && userIsAuthor ? (
|
||||||
props.author.banner_thumbnail_url ? (
|
props.author.banner_thumbnail_url ? (
|
||||||
<EditBannerButton link={ProfilePageStore.get('author-data').default_channel_edit_url} />
|
<EditBannerButton link={ProfilePageStore.get('author-data').default_channel_edit_url} />
|
||||||
) : (
|
) : (
|
||||||
@ -620,7 +620,7 @@ export default function ProfilePagesHeader(props) {
|
|||||||
{props.author.name ? (
|
{props.author.name ? (
|
||||||
<div className="profile-name-edit-wrapper">
|
<div className="profile-name-edit-wrapper">
|
||||||
<h1>{props.author.name}</h1>
|
<h1>{props.author.name}</h1>
|
||||||
{userCanEditProfile ? <EditProfileButton link={ProfilePageStore.get('author-data').edit_url} /> : null}
|
{userCanEditProfile && !userIsAuthor ? <EditProfileButton link={ProfilePageStore.get('author-data').edit_url} /> : null}
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user