From 3fda862ea004c1c417a442b2a8f38a67d0535979 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Fri, 19 Jul 2019 14:53:13 -0500 Subject: add badge to ui for locked accounts --- app/javascript/flavours/glitch/features/account/components/header.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/javascript/flavours/glitch/features/account') diff --git a/app/javascript/flavours/glitch/features/account/components/header.js b/app/javascript/flavours/glitch/features/account/components/header.js index 2b4adb4f5..0f03770b7 100644 --- a/app/javascript/flavours/glitch/features/account/components/header.js +++ b/app/javascript/flavours/glitch/features/account/components/header.js @@ -189,6 +189,8 @@ class Header extends ImmutablePureComponent { const content = { __html: account.get('note_emojified') }; const displayNameHtml = { __html: account.get('display_name_html') }; const fields = account.get('fields'); + + const badge_locked = account.get('locked') ? (
) : null; const badge_bot = account.get('bot') ? (
) : null; const badge_ac = account.get('adult_content') ? (
) : null; const badge_gently = account.get('gently') ? (
) : null; @@ -226,7 +228,7 @@ class Header extends ImmutablePureComponent {

@{acct} {lockedIcon} -
{badge_admin}{badge_mod}{badge_ac}{badge_bot}{badge_gently}{badge_kobold}
+
{badge_locked}{badge_admin}{badge_mod}{badge_ac}{badge_bot}{badge_gently}{badge_kobold}

-- cgit