From ccfc2b6dce4bfda283bb6bc968a23fe4a76951d7 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Mon, 28 Sep 2020 18:00:49 +0200 Subject: [PATCH] Make explicit in glitch-soc's WebUI when an account is suspended --- .../features/account/components/action_bar.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 6576bff8e5..2d4cc7f49e 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 ( +
+
+ +
+
+ ); + } + let extraInfo = ''; if (account.get('acct') !== account.get('username')) {