() => {
this.notificationService.show(
NotificationType.success,
- `User "${userFormModel.username}" has been created.`,
- 'Create User'
+ `Created user "${userFormModel.username}"`
);
- this.router.navigate(['/users']);
+ this.router.navigate(['/user-management/users']);
},
() => {
this.userForm.setErrors({ cdSubmitButton: true });
} else {
this.notificationService.show(
NotificationType.success,
- `User "${userFormModel.username}" has been updated.`,
- 'Edit User'
+ `Updated user "${userFormModel.username}"`
);
- this.router.navigate(['/users']);
+ this.router.navigate(['/user-management/users']);
}
},
() => {