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:
Max Peintner
2023-01-11 10:20:12 +00:00
committed by GitHub
co-authored by Livio Spring
parent f4b920c11c
commit 3be1f51e48
10 changed files with 203 additions and 106 deletions
@@ -66,9 +66,13 @@ export class InstanceMembersComponent {
.updateIAMMember(member.userId, selectionChange)
.then(() => {
this.toast.showInfo('ORG.TOAST.MEMBERCHANGED', true);
setTimeout(() => {
this.changePage.emit();
}, 1000);
})
.catch((error) => {
this.toast.showError(error);
this.changePage.emit();
});
}
@@ -79,10 +83,13 @@ export class InstanceMembersComponent {
.removeIAMMember(member.userId)
.then(() => {
this.toast.showInfo('IAM.TOAST.MEMBERREMOVED', true);
this.changePage.emit();
setTimeout(() => {
this.changePage.emit();
}, 1000);
})
.catch((error) => {
this.toast.showError(error);
this.changePage.emit();
});
}),
);
@@ -99,6 +106,7 @@ export class InstanceMembersComponent {
})
.catch((error) => {
this.toast.showError(error);
this.changePage.emit();
});
}
@@ -129,6 +137,7 @@ export class InstanceMembersComponent {
})
.catch((error) => {
this.toast.showError(error);
this.changePage.emit();
});
}
}