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 <max@caos.ch>
Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
Stygmates 2024-09-04 07:52:42 +02:00 committed by GitHub
parent 9a1140289a
commit d47ce93025
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {