Make explicit in glitch-soc's WebUI when an account is suspended
This commit is contained in:
parent
e3f822ac1b
commit
ccfc2b6dce
|
@ -26,6 +26,19 @@ class ActionBar extends React.PureComponent {
|
||||||
render () {
|
render () {
|
||||||
const { account, intl } = this.props;
|
const { account, intl } = this.props;
|
||||||
|
|
||||||
|
if (account.get('suspended')) {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<div className='account__disclaimer'>
|
||||||
|
<Icon id='info-circle' fixedWidth /> <FormattedMessage
|
||||||
|
id='account.suspended_disclaimer_full'
|
||||||
|
defaultMessage="This user has been suspended by a moderator."
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
let extraInfo = '';
|
let extraInfo = '';
|
||||||
|
|
||||||
if (account.get('acct') !== account.get('username')) {
|
if (account.get('acct') !== account.get('username')) {
|
||||||
|
|
Loading…
Reference in New Issue