We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a3f98 commit fa98c6bCopy full SHA for fa98c6b
Client/app/containers/users/users.component.ts
@@ -53,9 +53,9 @@ export class UsersComponent implements OnInit {
53
if (result.ok) {
54
let position = this.users.indexOf(user);
55
this.users.splice(position, 1);
56
- } else {
57
- alert('There was an issue, Could not delete user');
58
}
+ }, error => {
+ console.log(`There was an issue. ${error._body}.`);
59
});
60
61
@@ -64,9 +64,9 @@ export class UsersComponent implements OnInit {
64
console.log('Post user result: ', result);
65
66
this.users.push(result.json());
67
68
- alert('There was an issue, Could not edit user');
69
70
71
72
0 commit comments