import { Component, Input, OnInit, ViewChild } from '@angular/core'
-import { NotificationsService } from 'angular2-notifications'
+import { Notifier } from '@app/core'
import { FormReactive, VideoAbuseService } from '../../../shared/index'
import { VideoDetails } from '../../../shared/video/video-details.model'
import { I18n } from '@ngx-translate/i18n-polyfill'
private modalService: NgbModal,
private videoAbuseValidatorsService: VideoAbuseValidatorsService,
private videoAbuseService: VideoAbuseService,
- private notificationsService: NotificationsService,
+ private notifier: Notifier,
private i18n: I18n
) {
super()
this.videoAbuseService.reportVideo(this.video.id, reason)
.subscribe(
() => {
- this.notificationsService.success(this.i18n('Success'), this.i18n('Video reported.'))
+ this.notifier.success(this.i18n('Video reported.'))
this.hide()
},
- err => this.notificationsService.error(this.i18n('Error'), err.message)
+ err => this.notifier.error(err.message)
)
}