mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 15:17:33 +00:00
fix(console): navigate to users list after removal (#5095)
Redirects the user back to the user list after a user is deleted
This commit is contained in:
@@ -371,8 +371,9 @@ export class UserDetailComponent implements OnInit {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
const params: Params = {
|
const params: Params = {
|
||||||
deferredReload: true,
|
deferredReload: true,
|
||||||
|
type: this.user.human ? 'humans' : 'machines',
|
||||||
};
|
};
|
||||||
this.router.navigate(['/users/list', this.user.human ? 'humans' : 'machines'], { queryParams: params });
|
this.router.navigate(['/users'], { queryParams: params });
|
||||||
this.toast.showInfo('USER.TOAST.DELETED', true);
|
this.toast.showInfo('USER.TOAST.DELETED', true);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
Reference in New Issue
Block a user