diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-19 15:43:59 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-19 17:03:15 -0500 |
commit | 6d07ba50f31f82633019b62dc83ec7099e3926b3 (patch) | |
tree | 7d3d329b88c60a04d3aee35e71d932203fc73ba4 /app/javascript/flavours/glitch/features/account | |
parent | 3fda862ea004c1c417a442b2a8f38a67d0535979 (diff) |
keep `locked` badge for approves-followers + add `frozen` badge for admin-locked accts, also federate `frozen` state
Diffstat (limited to 'app/javascript/flavours/glitch/features/account')
-rw-r--r-- | app/javascript/flavours/glitch/features/account/components/header.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/account/components/header.js b/app/javascript/flavours/glitch/features/account/components/header.js index 0f03770b7..f70593868 100644 --- a/app/javascript/flavours/glitch/features/account/components/header.js +++ b/app/javascript/flavours/glitch/features/account/components/header.js @@ -191,6 +191,7 @@ class Header extends ImmutablePureComponent { const fields = account.get('fields'); const badge_locked = account.get('locked') ? (<div className='account-role locked'><FormattedMessage id='account.badges.locked' defaultMessage='🔒 Locked' /></div>) : null; + const badge_froze = account.get('froze') ? (<div className='account-role froze'><FormattedMessage id='account.badges.froze' defaultMessage='❄️ Frozen by admin' /></div>) : null; const badge_bot = account.get('bot') ? (<div className='account-role bot'><FormattedMessage id='account.badges.bot' defaultMessage='Bot' /></div>) : null; const badge_ac = account.get('adult_content') ? (<div className='account-role adult'><FormattedMessage id='account.badges.adult' defaultMessage="🔞 Adult content" /></div>) : null; const badge_gently = account.get('gently') ? (<div className='account-role gently'><FormattedMessage id='account.badges.gently' defaultMessage="Gentlies kobolds" /></div>) : null; @@ -226,9 +227,10 @@ class Header extends ImmutablePureComponent { <div className='account__header__tabs__name'> <h1> + <span className='account__header__locked'>{lockedIcon}</span> <span dangerouslySetInnerHTML={displayNameHtml} /> - <small>@{acct} {lockedIcon}</small> - <div className='roles'>{badge_locked}{badge_admin}{badge_mod}{badge_ac}{badge_bot}{badge_gently}{badge_kobold}</div> + <small>@{acct}</small> + <div className='roles'>{badge_froze}{badge_locked}{badge_admin}{badge_mod}{badge_ac}{badge_bot}{badge_gently}{badge_kobold}</div> </h1> </div> |