From 62bf60a82cf193ffb466a65bf8a7fcd74dc41f8a Mon Sep 17 00:00:00 2001 From: Dominic R Date: Wed, 24 Sep 2025 11:20:40 -0400 Subject: [PATCH] web/admin: Fix dissapearing "Create" button in service account modal (#16963) Reproduction: 1. Attempt to create a service account: fill out the username and click Create. 2. There's a popup giving you your username and token. Click Close 3. Attempt to click Create Service Account again, the Create button should be here this time. Root Cause: When the form is reset (it happens when the modal is closed), it was resetting the form data and clearing the result but not restoring the showSubmitButton property back to true. --- web/src/admin/users/ServiceAccountForm.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/admin/users/ServiceAccountForm.ts b/web/src/admin/users/ServiceAccountForm.ts index b02a6fbedd..945725ab0e 100644 --- a/web/src/admin/users/ServiceAccountForm.ts +++ b/web/src/admin/users/ServiceAccountForm.ts @@ -54,6 +54,7 @@ export class ServiceAccountForm extends Form { reset(): void { super.reset(); this.result = null; + (this.parentElement as ModalForm).showSubmitButton = true; } renderForm(): TemplateResult {