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