From 46216a40300201b0d557f6ab8d3e87ba3386cfcc Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 19 May 2019 10:55:50 -0500 Subject: show mod & admin badges in web app --- .../flavours/glitch/features/account/components/header.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/javascript/flavours/glitch/features/account/components/header.js b/app/javascript/flavours/glitch/features/account/components/header.js index e3a08019c..8758c6cca 100644 --- a/app/javascript/flavours/glitch/features/account/components/header.js +++ b/app/javascript/flavours/glitch/features/account/components/header.js @@ -190,9 +190,11 @@ class Header extends ImmutablePureComponent { const displayNameHtml = { __html: account.get('display_name_html') }; const fields = account.get('fields'); const badge_bot = account.get('bot') ? (
) : null; - const badge_ao = account.get('adults_only') ? (
) : null; - const badge_gntly_kbld = account.get('gentlies_kobolds') ? (
) : null; - const badge_kobold = account.get('is_a_kobold') ? (
) : null; + const badge_ao = account.get('adults_only') ? (
) : null; + const badge_gntly_kbld = account.get('gentlies_kobolds') ? (
) : null; + const badge_kobold = account.get('is_a_kobold') ? (
) : null; + const badge_mod = account.get('role') == 'moderator' ? (
) : null; + const badge_admin = account.get('role') == 'admin' ? (
) : null; const acct = account.get('acct').indexOf('@') === -1 && domain ? `${account.get('acct')}@${domain}` : account.get('acct'); return ( @@ -224,7 +226,7 @@ class Header extends ImmutablePureComponent {

@{acct} {lockedIcon} -
{badge_ao}{badge_bot}{badge_gntly_kbld}{badge_kobold}
+
{badge_admin}{badge_mod}{badge_ao}{badge_bot}{badge_gntly_kbld}{badge_kobold}

-- cgit