|
|
|
@ -209,7 +209,7 @@ class Header extends ImmutablePureComponent {
|
|
|
|
|
actionBtn = '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (suspended && !account.getIn(['relationship', 'following'])) {
|
|
|
|
|
if (account.get('suspended') && !account.getIn(['relationship', 'following'])) {
|
|
|
|
|
actionBtn = '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -217,7 +217,7 @@ class Header extends ImmutablePureComponent {
|
|
|
|
|
lockedIcon = <Icon id='lock' title={intl.formatMessage(messages.account_locked)} />;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (signedIn && account.get('id') !== me && !suspended) {
|
|
|
|
|
if (signedIn && account.get('id') !== me && !account.get('suspended')) {
|
|
|
|
|
menu.push({ text: intl.formatMessage(messages.mention, { name: account.get('username') }), action: this.props.onMention });
|
|
|
|
|
menu.push({ text: intl.formatMessage(messages.direct, { name: account.get('username') }), action: this.props.onDirect });
|
|
|
|
|
menu.push(null);
|
|
|
|
@ -228,7 +228,7 @@ class Header extends ImmutablePureComponent {
|
|
|
|
|
menu.push(null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ('share' in navigator && !suspended) {
|
|
|
|
|
if ('share' in navigator && !account.get('suspended')) {
|
|
|
|
|
menu.push({ text: intl.formatMessage(messages.share, { name: account.get('username') }), action: this.handleShare });
|
|
|
|
|
menu.push(null);
|
|
|
|
|
}
|
|
|
|
@ -276,7 +276,9 @@ class Header extends ImmutablePureComponent {
|
|
|
|
|
menu.push({ text: intl.formatMessage(messages.block, { name: account.get('username') }), action: this.props.onBlock, dangerous: true });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
menu.push({ text: intl.formatMessage(messages.report, { name: account.get('username') }), action: this.props.onReport, dangerous: true });
|
|
|
|
|
if (!account.get('suspended')) {
|
|
|
|
|
menu.push({ text: intl.formatMessage(messages.report, { name: account.get('username') }), action: this.props.onReport, dangerous: true });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (signedIn && isRemote) {
|
|
|
|
@ -340,18 +342,16 @@ class Header extends ImmutablePureComponent {
|
|
|
|
|
{role}
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
{!suspended && (
|
|
|
|
|
<div className='account__header__tabs__buttons'>
|
|
|
|
|
{!hidden && (
|
|
|
|
|
<>
|
|
|
|
|
{actionBtn}
|
|
|
|
|
{bellBtn}
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
<div className='account__header__tabs__buttons'>
|
|
|
|
|
{!hidden && (
|
|
|
|
|
<>
|
|
|
|
|
{actionBtn}
|
|
|
|
|
{bellBtn}
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<DropdownMenuContainer disabled={menu.length === 0} items={menu} icon='ellipsis-v' size={24} direction='right' />
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
<DropdownMenuContainer disabled={menu.length === 0} items={menu} icon='ellipsis-v' size={24} direction='right' />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className='account__header__tabs__name'>
|
|
|
|
|