diff options
Diffstat (limited to 'client/src/app/+videos/+video-watch/video-watch-playlist.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-watch/video-watch-playlist.component.ts | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/client/src/app/+videos/+video-watch/video-watch-playlist.component.ts b/client/src/app/+videos/+video-watch/video-watch-playlist.component.ts index 519ce2974..c60ca4671 100644 --- a/client/src/app/+videos/+video-watch/video-watch-playlist.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch-playlist.component.ts | |||
@@ -1,9 +1,8 @@ | |||
1 | import { Component, Input } from '@angular/core' | 1 | import { Component, Input } from '@angular/core' |
2 | import { Router } from '@angular/router' | 2 | import { Router } from '@angular/router' |
3 | import { AuthService, ComponentPagination, LocalStorageService, Notifier, SessionStorageService, UserService } from '@app/core' | 3 | import { AuthService, ComponentPagination, LocalStorageService, Notifier, SessionStorageService, UserService } from '@app/core' |
4 | import { peertubeLocalStorage, peertubeSessionStorage } from '@root-helpers/peertube-web-storage' | ||
5 | import { VideoPlaylist, VideoPlaylistElement, VideoPlaylistService } from '@app/shared/shared-video-playlist' | 4 | import { VideoPlaylist, VideoPlaylistElement, VideoPlaylistService } from '@app/shared/shared-video-playlist' |
6 | import { I18n } from '@ngx-translate/i18n-polyfill' | 5 | import { peertubeLocalStorage, peertubeSessionStorage } from '@root-helpers/peertube-web-storage' |
7 | import { VideoDetails, VideoPlaylistPrivacy } from '@shared/models' | 6 | import { VideoDetails, VideoPlaylistPrivacy } from '@shared/models' |
8 | 7 | ||
9 | @Component({ | 8 | @Component({ |
@@ -36,7 +35,6 @@ export class VideoWatchPlaylistComponent { | |||
36 | private userService: UserService, | 35 | private userService: UserService, |
37 | private auth: AuthService, | 36 | private auth: AuthService, |
38 | private notifier: Notifier, | 37 | private notifier: Notifier, |
39 | private i18n: I18n, | ||
40 | private videoPlaylist: VideoPlaylistService, | 38 | private videoPlaylist: VideoPlaylistService, |
41 | private localStorageService: LocalStorageService, | 39 | private localStorageService: LocalStorageService, |
42 | private sessionStorageService: SessionStorageService, | 40 | private sessionStorageService: SessionStorageService, |
@@ -189,13 +187,13 @@ export class VideoWatchPlaylistComponent { | |||
189 | 187 | ||
190 | private setAutoPlayNextVideoPlaylistSwitchText () { | 188 | private setAutoPlayNextVideoPlaylistSwitchText () { |
191 | this.autoPlayNextVideoPlaylistSwitchText = this.autoPlayNextVideoPlaylist | 189 | this.autoPlayNextVideoPlaylistSwitchText = this.autoPlayNextVideoPlaylist |
192 | ? this.i18n('Stop autoplaying next video') | 190 | ? $localize`Stop autoplaying next video` |
193 | : this.i18n('Autoplay next video') | 191 | : $localize`Autoplay next video` |
194 | } | 192 | } |
195 | 193 | ||
196 | private setLoopPlaylistSwitchText () { | 194 | private setLoopPlaylistSwitchText () { |
197 | this.loopPlaylistSwitchText = this.loopPlaylist | 195 | this.loopPlaylistSwitchText = this.loopPlaylist |
198 | ? this.i18n('Stop looping playlist videos') | 196 | ? $localize`Stop looping playlist videos` |
199 | : this.i18n('Loop playlist videos') | 197 | : $localize`Loop playlist videos` |
200 | } | 198 | } |
201 | } | 199 | } |