From d47ce93025bbb369565116a58e58aff4cb14609c Mon Sep 17 00:00:00 2001 From: Stygmates Date: Wed, 4 Sep 2024 07:52:42 +0200 Subject: [PATCH] fix(console): Verify if the LDAP IDP has just been created (#8496) # Which Problems Are Solved After the creation of an LDAP IDP on instance or org level, the button changes to 'Save' and with each click a new IDP will be created. # How the Problems Are Solved Similar to what was done in #7572, we check if the IDP was just created # Additional Changes None # Additional Context - Closes #8444 - Follow-up for PR #7572 Co-authored-by: Max Peintner Co-authored-by: Livio Spring --- .../modules/providers/provider-ldap/provider-ldap.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/src/app/modules/providers/provider-ldap/provider-ldap.component.ts b/console/src/app/modules/providers/provider-ldap/provider-ldap.component.ts index 382763a5e6..dee137354f 100644 --- a/console/src/app/modules/providers/provider-ldap/provider-ldap.component.ts +++ b/console/src/app/modules/providers/provider-ldap/provider-ldap.component.ts @@ -179,7 +179,7 @@ export class ProviderLDAPComponent { } public submitForm(): void { - this.provider ? this.updateLDAPProvider() : this.addLDAPProvider(); + this.provider || this.justCreated$.value ? this.updateLDAPProvider() : this.addLDAPProvider(); } public addLDAPProvider(): void {