From bc4a8a90951f9f448032073c584971f3d89bd862 Mon Sep 17 00:00:00 2001 From: Paul Fitzpatrick Date: Thu, 16 May 2024 14:16:20 -0400 Subject: [PATCH] fix message for non-admins --- app/client/ui/AdminPanel.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/client/ui/AdminPanel.ts b/app/client/ui/AdminPanel.ts index eaf12e89..f13c5f37 100644 --- a/app/client/ui/AdminPanel.ts +++ b/app/client/ui/AdminPanel.ts @@ -101,7 +101,13 @@ export class AdminPanel extends Disposable { return dom.create(AdminSection, t('Administrator Panel Unavailable'), [ dom('p', t(`You do not have access to the administrator panel. Please log in as an administrator.`)), - dom('p', t(`Or, as a fallback, you can set: {{bootKey}} in the environment and visit: {{url}}`), {bootKey: dom('pre', 'GRIST_BOOT_KEY=secret'), url: dom('pre', `/admin?key=secret`)}), + dom( + 'p', + t(`Or, as a fallback, you can set: {{bootKey}} in the environment and visit: {{url}}`, { + bootKey: dom('pre', 'GRIST_BOOT_KEY=secret'), + url: dom('pre', `/admin?key=secret`) + }), + ), ]); }