mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
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.
This commit is contained in:
@@ -54,6 +54,7 @@ export class ServiceAccountForm extends Form<UserServiceAccountRequest> {
|
||||
reset(): void {
|
||||
super.reset();
|
||||
this.result = null;
|
||||
(this.parentElement as ModalForm).showSubmitButton = true;
|
||||
}
|
||||
|
||||
renderForm(): TemplateResult {
|
||||
|
||||
Reference in New Issue
Block a user