fix: redirect after idp create (#1269)

This commit is contained in:
Max Peintner
2021-02-10 13:18:18 +01:00
committed by GitHub
parent c205d65117
commit d1e370ae12

View File

@@ -110,9 +110,9 @@ export class IdpCreateComponent implements OnInit, OnDestroy {
setTimeout(() => { setTimeout(() => {
this.loading = false; this.loading = false;
this.router.navigate([ this.router.navigate([
this.serviceType === PolicyComponentServiceType.MGMT ? 'org' : (this.serviceType === PolicyComponentServiceType.MGMT ? 'org' :
this.serviceType === PolicyComponentServiceType.ADMIN ? 'iam' : '', this.serviceType === PolicyComponentServiceType.ADMIN ? 'iam' : ''),
'idp', idp.getId()]); 'policy', 'login']);
}, 2000); }, 2000);
}).catch(error => { }).catch(error => {
this.toast.showError(error); this.toast.showError(error);