From f3c3b3ce76581bf7de8c1bbfe4e9ae3260e4f533 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 15 Nov 2020 17:13:35 +0000 Subject: [PATCH] use badges to denote admin users in accounts tab --- data/templates/admin.html | 1 - ts/modules/accounts.ts | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/data/templates/admin.html b/data/templates/admin.html index b8b42ef..d40b4f6 100644 --- a/data/templates/admin.html +++ b/data/templates/admin.html @@ -409,7 +409,6 @@ Username Email Address Last Active - Admin? diff --git a/ts/modules/accounts.ts b/ts/modules/accounts.ts index 386f9ff..e72243c 100644 --- a/ts/modules/accounts.ts +++ b/ts/modules/accounts.ts @@ -63,10 +63,9 @@ export function populateUsers(): void { } return ` - ${username} + ${username}${admin ? 'Admin' : ''} ${generateEmail(id, name, email)} ${lastActive} - ${isAdmin} `; };