diff options
author | Thibaut Girka <thib@sitedethib.com> | 2020-09-28 18:00:49 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-09-28 18:00:49 +0200 |
commit | ccfc2b6dce4bfda283bb6bc968a23fe4a76951d7 (patch) | |
tree | 69439eebc4da7137206ee82e6ec3fa21cf8c7ed0 /app/javascript/flavours/glitch/features/account/components | |
parent | e3f822ac1ba65925a23efdfdbd8bbb4dccfb8394 (diff) |
Make explicit in glitch-soc's WebUI when an account is suspended
Diffstat (limited to 'app/javascript/flavours/glitch/features/account/components')
-rw-r--r-- | app/javascript/flavours/glitch/features/account/components/action_bar.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/account/components/action_bar.js b/app/javascript/flavours/glitch/features/account/components/action_bar.js index 6576bff8e..2d4cc7f49 100644 --- a/app/javascript/flavours/glitch/features/account/components/action_bar.js +++ b/app/javascript/flavours/glitch/features/account/components/action_bar.js @@ -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')) { |