fix: delete limit of login policy query for idp links list (#4654)

* fix: delete limit of login policy query for idp links list

* set isDefault to false

* fix: change orderby to desc if custom login policy is queried

* fix: split select for idp links from select for login policy

Co-authored-by: Max Peintner <max@caos.ch>
Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
Stefan Benz
2022-11-14 15:15:29 +00:00
committed by GitHub
parent bc715acaa9
commit e183fe668a
3 changed files with 23 additions and 57 deletions

View File

@@ -284,6 +284,7 @@ export class IdpTableComponent implements OnInit {
if (this.isDefault) {
return this.addLoginPolicy()
.then(() => {
this.loginPolicy.isDefault = false;
return (this.service as ManagementService).addIDPToLoginPolicy(idp.id, idp.owner).then(() => {
this.toast.showInfo('IDP.TOAST.ADDED', true);
@@ -339,6 +340,7 @@ export class IdpTableComponent implements OnInit {
if (this.isDefault) {
return this.addLoginPolicy()
.then(() => {
this.loginPolicy.isDefault = false;
return (this.service as ManagementService)
.removeIDPFromLoginPolicy(idp.id)
.then(() => {