diff options
Diffstat (limited to 'client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts')
-rw-r--r-- | client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts | 6 |
1 files changed, 4 insertions, 2 deletions
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 b650194b7..6ddebff7e 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 | |||
@@ -5,6 +5,7 @@ import { SortMeta } from 'primeng/components/common/sortmeta' | |||
5 | import { VideoAbuse } from '../../../../../../shared' | 5 | import { VideoAbuse } from '../../../../../../shared' |
6 | 6 | ||
7 | import { RestPagination, RestTable, VideoAbuseService } from '../../../shared' | 7 | import { RestPagination, RestTable, VideoAbuseService } from '../../../shared' |
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
8 | 9 | ||
9 | @Component({ | 10 | @Component({ |
10 | selector: 'my-video-abuse-list', | 11 | selector: 'my-video-abuse-list', |
@@ -20,7 +21,8 @@ export class VideoAbuseListComponent extends RestTable implements OnInit { | |||
20 | 21 | ||
21 | constructor ( | 22 | constructor ( |
22 | private notificationsService: NotificationsService, | 23 | private notificationsService: NotificationsService, |
23 | private videoAbuseService: VideoAbuseService | 24 | private videoAbuseService: VideoAbuseService, |
25 | private i18n: I18n | ||
24 | ) { | 26 | ) { |
25 | super() | 27 | super() |
26 | } | 28 | } |
@@ -41,7 +43,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit { | |||
41 | this.totalRecords = resultList.total | 43 | this.totalRecords = resultList.total |
42 | }, | 44 | }, |
43 | 45 | ||
44 | err => this.notificationsService.error('Error', err.message) | 46 | err => this.notificationsService.error(this.i18n('Error'), err.message) |
45 | ) | 47 | ) |
46 | } | 48 | } |
47 | } | 49 | } |