From bfb3a98fac582f104c6d9b8b7242ea2cbb650b91 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Sep 2017 17:06:31 +0200 Subject: Remove ng2 file upload module Unmaintained and we don't need it anymore with httpclient --- client/src/app/+admin/friends/friend-add/friend-add.component.ts | 2 +- client/src/app/+admin/friends/friend-list/friend-list.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app/+admin/friends') diff --git a/client/src/app/+admin/friends/friend-add/friend-add.component.ts b/client/src/app/+admin/friends/friend-add/friend-add.component.ts index e0b73dfa3..6580e1b88 100644 --- a/client/src/app/+admin/friends/friend-add/friend-add.component.ts +++ b/client/src/app/+admin/friends/friend-add/friend-add.component.ts @@ -98,7 +98,7 @@ export class FriendAddComponent implements OnInit { setTimeout(() => this.router.navigate([ '/admin/friends/list' ]), 1000) }, - err => this.notificationsService.error('Error', err) + err => this.notificationsService.error('Error', err.message) ) } ) diff --git a/client/src/app/+admin/friends/friend-list/friend-list.component.ts b/client/src/app/+admin/friends/friend-list/friend-list.component.ts index 6a8bd492c..4af39c47e 100644 --- a/client/src/app/+admin/friends/friend-list/friend-list.component.ts +++ b/client/src/app/+admin/friends/friend-list/friend-list.component.ts @@ -40,7 +40,7 @@ export class FriendListComponent implements OnInit { this.loadData() }, - err => this.notificationsService.error('Error', err) + err => this.notificationsService.error('Error', err.message) ) } ) @@ -59,7 +59,7 @@ export class FriendListComponent implements OnInit { this.loadData() }, - err => this.notificationsService.error('Error', err) + err => this.notificationsService.error('Error', err.message) ) } ) @@ -72,7 +72,7 @@ export class FriendListComponent implements OnInit { this.friends = resultList.data }, - err => this.notificationsService.error('Error', err) + err => this.notificationsService.error('Error', err.message) ) } } -- cgit v1.2.3