kopia lustrzana https://github.com/cheeaun/phanpy
Hide "View profile header" if there's no header
rodzic
c99bba1918
commit
e64c0286c2
|
@ -634,6 +634,7 @@ function AccountInfo({
|
||||||
<Trans>View profile image</Trans>
|
<Trans>View profile image</Trans>
|
||||||
</span>
|
</span>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
{!!headerStatic && !headerIsAvatar && (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
states.showMediaModal = {
|
states.showMediaModal = {
|
||||||
|
@ -651,6 +652,7 @@ function AccountInfo({
|
||||||
<Trans>View profile header</Trans>
|
<Trans>View profile header</Trans>
|
||||||
</span>
|
</span>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
)}
|
||||||
{currentAuthenticated &&
|
{currentAuthenticated &&
|
||||||
isSelf &&
|
isSelf &&
|
||||||
supports('@mastodon/profile-edit') && (
|
supports('@mastodon/profile-edit') && (
|
||||||
|
|
Ładowanie…
Reference in New Issue