From 0bbe74e2bf35963e6c09ab14f3c857350e087d32 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 6 Feb 2023 21:13:43 +0100 Subject: [PATCH] web/admin: fix token edit button Signed-off-by: Jens Langhammer --- web/src/admin/tokens/TokenListPage.ts | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/web/src/admin/tokens/TokenListPage.ts b/web/src/admin/tokens/TokenListPage.ts index 91101abcf..166e3fc42 100644 --- a/web/src/admin/tokens/TokenListPage.ts +++ b/web/src/admin/tokens/TokenListPage.ts @@ -118,18 +118,16 @@ export class TokenListPage extends TablePage { html`${item.expiring ? item.expires?.toLocaleString() : t`-`}`, html`${IntentToLabel(item.intent || IntentEnum.Api)}`, html` - - ${t`Update`} - ${t`Update Token`} - - - + ${!item.managed + ? html` + ${t`Update`} + ${t`Update Token`} + + + ` + : html``}