]> cat aescling's git repositories - mastodon.git/commitdiff
Make explicit in glitch-soc's WebUI when an account is suspended
authorThibaut Girka <thib@sitedethib.com>
Mon, 28 Sep 2020 16:00:49 +0000 (18:00 +0200)
committerThibaut Girka <thib@sitedethib.com>
Mon, 28 Sep 2020 16:00:49 +0000 (18:00 +0200)
app/javascript/flavours/glitch/features/account/components/action_bar.js

index 6576bff8e5a0718ab2bde2c5284d70c884fb4560..2d4cc7f49eeb6faaecaf0f53a26ad949170a5822 100644 (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')) {