mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-24 05:38:46 +00:00
fix(console): member table updates (#4984)
* fix: members table refresh, delete with single role * trigger update after change * remove event propagation handler Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
co-authored by
Livio Spring
parent
f4b920c11c
commit
3be1f51e48
@@ -64,6 +64,7 @@ export class OrgMembersComponent {
|
||||
})
|
||||
.catch((error) => {
|
||||
this.toast.showError(error);
|
||||
this.changePage.emit();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -72,8 +73,12 @@ export class OrgMembersComponent {
|
||||
.updateOrgMember(member.userId, selectionChange)
|
||||
.then(() => {
|
||||
this.toast.showInfo('ORG.TOAST.MEMBERCHANGED', true);
|
||||
setTimeout(() => {
|
||||
this.changePage.emit();
|
||||
}, 1000);
|
||||
})
|
||||
.catch((error) => {
|
||||
this.changePage.emit();
|
||||
this.toast.showError(error);
|
||||
});
|
||||
}
|
||||
@@ -85,16 +90,24 @@ export class OrgMembersComponent {
|
||||
.removeOrgMember(member.userId)
|
||||
.then(() => {
|
||||
this.toast.showInfo('ORG.TOAST.MEMBERREMOVED', true);
|
||||
setTimeout(() => {
|
||||
this.changePage.emit();
|
||||
}, 1000);
|
||||
})
|
||||
.catch((error) => {
|
||||
this.toast.showError(error);
|
||||
});
|
||||
}),
|
||||
).then(() => {
|
||||
setTimeout(() => {
|
||||
)
|
||||
.then(() => {
|
||||
setTimeout(() => {
|
||||
this.changePage.emit();
|
||||
}, 1000);
|
||||
})
|
||||
.catch((error) => {
|
||||
this.toast.showError(error);
|
||||
this.changePage.emit();
|
||||
}, 1000);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
public removeOrgMember(member: Member.AsObject): void {
|
||||
@@ -109,6 +122,7 @@ export class OrgMembersComponent {
|
||||
})
|
||||
.catch((error) => {
|
||||
this.toast.showError(error);
|
||||
this.changePage.emit();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -138,6 +152,7 @@ export class OrgMembersComponent {
|
||||
}, 1000);
|
||||
})
|
||||
.catch((error) => {
|
||||
this.changePage.emit();
|
||||
this.toast.showError(error);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user