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 +++--- .../request-schedulers-stats/request-schedulers-stats.component.ts | 2 +- client/src/app/+admin/users/user-list/user-list.component.ts | 4 ++-- .../video-abuses/video-abuse-list/video-abuse-list.component.ts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'client/src/app/+admin') 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) ) } } diff --git a/client/src/app/+admin/request-schedulers/request-schedulers-stats/request-schedulers-stats.component.ts b/client/src/app/+admin/request-schedulers/request-schedulers-stats/request-schedulers-stats.component.ts index 1edeb31fe..1654827ab 100644 --- a/client/src/app/+admin/request-schedulers/request-schedulers-stats/request-schedulers-stats.component.ts +++ b/client/src/app/+admin/request-schedulers/request-schedulers-stats/request-schedulers-stats.component.ts @@ -57,7 +57,7 @@ export class RequestSchedulersStatsComponent implements OnInit, OnDestroy { this.requestService.getStats().subscribe( stats => this.stats = stats, - err => this.notificationsService.error('Error', err) + err => this.notificationsService.error('Error', err.message) ) } diff --git a/client/src/app/+admin/users/user-list/user-list.component.ts b/client/src/app/+admin/users/user-list/user-list.component.ts index c3fa55825..73b5c0ce9 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.ts +++ b/client/src/app/+admin/users/user-list/user-list.component.ts @@ -47,7 +47,7 @@ export class UserListComponent extends RestTable implements OnInit { this.loadData() }, - err => this.notificationsService.error('Error', err) + err => this.notificationsService.error('Error', err.message) ) } ) @@ -65,7 +65,7 @@ export class UserListComponent extends RestTable implements OnInit { this.totalRecords = resultList.total }, - err => this.notificationsService.error('Error', err) + err => this.notificationsService.error('Error', err.message) ) } } diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts index 5a0131a81..92de11f0e 100644 --- a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts +++ b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts @@ -40,7 +40,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit { this.totalRecords = resultList.total }, - err => this.notificationsService.error('Error', err) + err => this.notificationsService.error('Error', err.message) ) } } -- cgit v1.2.3