diff options
Diffstat (limited to 'client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts')
-rw-r--r-- | client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts index e491edaca..a02e84f67 100644 --- a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts +++ b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { SortMeta } from 'primeng/components/common/sortmeta' | 2 | import { SortMeta } from 'primeng/components/common/sortmeta' |
3 | import { NotificationsService } from 'angular2-notifications' | 3 | import { Notifier } from '@app/core' |
4 | import { ConfirmService } from '../../../core' | 4 | import { ConfirmService } from '../../../core' |
5 | import { RestPagination, RestTable, VideoBlacklistService } from '../../../shared' | 5 | import { RestPagination, RestTable, VideoBlacklistService } from '../../../shared' |
6 | import { VideoBlacklist } from '../../../../../../shared' | 6 | import { VideoBlacklist } from '../../../../../../shared' |
@@ -23,7 +23,7 @@ export class VideoBlacklistListComponent extends RestTable implements OnInit { | |||
23 | videoBlacklistActions: DropdownAction<VideoBlacklist>[] = [] | 23 | videoBlacklistActions: DropdownAction<VideoBlacklist>[] = [] |
24 | 24 | ||
25 | constructor ( | 25 | constructor ( |
26 | private notificationsService: NotificationsService, | 26 | private notifier: Notifier, |
27 | private confirmService: ConfirmService, | 27 | private confirmService: ConfirmService, |
28 | private videoBlacklistService: VideoBlacklistService, | 28 | private videoBlacklistService: VideoBlacklistService, |
29 | private i18n: I18n | 29 | private i18n: I18n |
@@ -56,14 +56,11 @@ export class VideoBlacklistListComponent extends RestTable implements OnInit { | |||
56 | 56 | ||
57 | this.videoBlacklistService.removeVideoFromBlacklist(entry.video.id).subscribe( | 57 | this.videoBlacklistService.removeVideoFromBlacklist(entry.video.id).subscribe( |
58 | () => { | 58 | () => { |
59 | this.notificationsService.success( | 59 | this.notifier.success(this.i18n('Video {{name}} removed from the blacklist.', { name: entry.video.name })) |
60 | this.i18n('Success'), | ||
61 | this.i18n('Video {{name}} removed from the blacklist.', { name: entry.video.name }) | ||
62 | ) | ||
63 | this.loadData() | 60 | this.loadData() |
64 | }, | 61 | }, |
65 | 62 | ||
66 | err => this.notificationsService.error(this.i18n('Error'), err.message) | 63 | err => this.notifier.error(err.message) |
67 | ) | 64 | ) |
68 | } | 65 | } |
69 | 66 | ||
@@ -75,7 +72,7 @@ export class VideoBlacklistListComponent extends RestTable implements OnInit { | |||
75 | this.totalRecords = resultList.total | 72 | this.totalRecords = resultList.total |
76 | }, | 73 | }, |
77 | 74 | ||
78 | err => this.notificationsService.error(this.i18n('Error'), err.message) | 75 | err => this.notifier.error(err.message) |
79 | ) | 76 | ) |
80 | } | 77 | } |
81 | } | 78 | } |