Make explicit in glitch-soc's WebUI when an account is suspended

lolsob-rspec
Thibaut Girka 2020-09-28 18:00:49 +02:00
parent a11ff90798
commit f2dfaeb4a8
1 changed files with 13 additions and 0 deletions

View File

@ -26,6 +26,19 @@ class ActionBar extends React.PureComponent {
render () {
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 = '';
if (account.get('acct') !== account.get('username')) {