about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-09-28 18:00:49 +0200
committerThibaut Girka <thib@sitedethib.com>2020-09-28 18:00:49 +0200
commitccfc2b6dce4bfda283bb6bc968a23fe4a76951d7 (patch)
tree69439eebc4da7137206ee82e6ec3fa21cf8c7ed0 /app/javascript/flavours
parente3f822ac1ba65925a23efdfdbd8bbb4dccfb8394 (diff)
Make explicit in glitch-soc's WebUI when an account is suspended
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/features/account/components/action_bar.js13
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')) {