diff options
Diffstat (limited to 'client/src/app/videos/+video-watch/modal/video-share.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/modal/video-share.component.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-watch/modal/video-share.component.ts b/client/src/app/videos/+video-watch/modal/video-share.component.ts index 33998c5d8..5c988a43b 100644 --- a/client/src/app/videos/+video-watch/modal/video-share.component.ts +++ b/client/src/app/videos/+video-watch/modal/video-share.component.ts | |||
@@ -5,6 +5,7 @@ import { NotificationsService } from 'angular2-notifications' | |||
5 | import { ModalDirective } from 'ngx-bootstrap/modal' | 5 | import { ModalDirective } from 'ngx-bootstrap/modal' |
6 | import { VideoDetails } from '../../../shared/video/video-details.model' | 6 | import { VideoDetails } from '../../../shared/video/video-details.model' |
7 | import { buildVideoEmbed } from '../../../../assets/player/utils' | 7 | import { buildVideoEmbed } from '../../../../assets/player/utils' |
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
8 | 9 | ||
9 | @Component({ | 10 | @Component({ |
10 | selector: 'my-video-share', | 11 | selector: 'my-video-share', |
@@ -16,7 +17,10 @@ export class VideoShareComponent { | |||
16 | 17 | ||
17 | @ViewChild('modal') modal: ModalDirective | 18 | @ViewChild('modal') modal: ModalDirective |
18 | 19 | ||
19 | constructor (private notificationsService: NotificationsService) { | 20 | constructor ( |
21 | private notificationsService: NotificationsService, | ||
22 | private i18n: I18n | ||
23 | ) { | ||
20 | // empty | 24 | // empty |
21 | } | 25 | } |
22 | 26 | ||
@@ -41,6 +45,6 @@ export class VideoShareComponent { | |||
41 | } | 45 | } |
42 | 46 | ||
43 | activateCopiedMessage () { | 47 | activateCopiedMessage () { |
44 | this.notificationsService.success('Success', 'Copied') | 48 | this.notificationsService.success(this.i18n('Success'), this.i18n('Copied')) |
45 | } | 49 | } |
46 | } | 50 | } |