Feature: Allow password change
This commit is contained in:
@ -73,7 +73,12 @@ export class UserDetailComponent implements OnInit, AfterViewInit {
|
||||
this.ser.saveOrUpdate(this.getItem()).subscribe(
|
||||
() => {
|
||||
this.toaster.show('Success', '');
|
||||
this.router.navigateByUrl('/users');
|
||||
console.log(this.item.id);
|
||||
if ((this.item.id as string) === 'me') {
|
||||
this.router.navigateByUrl('/');
|
||||
} else {
|
||||
this.router.navigateByUrl('/users');
|
||||
}
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Error', error);
|
||||
|
||||
Reference in New Issue
Block a user