diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-11 09:21:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-11 09:21:13 +0200 |
commit | 784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428 (patch) | |
tree | 29c46cfd6344065eb805680ed080cb05592ee1d4 /client/src/app/shared/shared-video-miniature | |
parent | c3030e944ad03c7fd7b5d668a2d88ff03e4cdf19 (diff) | |
download | PeerTube-784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428.tar.gz PeerTube-784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428.tar.zst PeerTube-784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428.zip |
Prefer web videos in favour of webtorrent
Diffstat (limited to 'client/src/app/shared/shared-video-miniature')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts index 56527ddfa..0a3ada711 100644 --- a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts | |||
@@ -273,7 +273,7 @@ export class VideoActionsDropdownComponent implements OnChanges { | |||
273 | }) | 273 | }) |
274 | } | 274 | } |
275 | 275 | ||
276 | async removeVideoFiles (video: Video, type: 'hls' | 'webtorrent') { | 276 | async removeVideoFiles (video: Video, type: 'hls' | 'web-videos') { |
277 | const confirmMessage = $localize`Do you really want to remove "${this.video.name}" files?` | 277 | const confirmMessage = $localize`Do you really want to remove "${this.video.name}" files?` |
278 | 278 | ||
279 | const res = await this.confirmService.confirm(confirmMessage, $localize`Remove "${this.video.name}" files`) | 279 | const res = await this.confirmService.confirm(confirmMessage, $localize`Remove "${this.video.name}" files`) |
@@ -290,7 +290,7 @@ export class VideoActionsDropdownComponent implements OnChanges { | |||
290 | }) | 290 | }) |
291 | } | 291 | } |
292 | 292 | ||
293 | runTranscoding (video: Video, type: 'hls' | 'webtorrent') { | 293 | runTranscoding (video: Video, type: 'hls' | 'web-video') { |
294 | this.videoService.runTranscoding([ video.id ], type) | 294 | this.videoService.runTranscoding([ video.id ], type) |
295 | .subscribe({ | 295 | .subscribe({ |
296 | next: () => { | 296 | next: () => { |
@@ -394,8 +394,8 @@ export class VideoActionsDropdownComponent implements OnChanges { | |||
394 | iconName: 'cog' | 394 | iconName: 'cog' |
395 | }, | 395 | }, |
396 | { | 396 | { |
397 | label: $localize`Run WebTorrent transcoding`, | 397 | label: $localize`Run Web Video transcoding`, |
398 | handler: ({ video }) => this.runTranscoding(video, 'webtorrent'), | 398 | handler: ({ video }) => this.runTranscoding(video, 'web-video'), |
399 | isDisplayed: () => this.displayOptions.transcoding && this.canRunTranscoding(), | 399 | isDisplayed: () => this.displayOptions.transcoding && this.canRunTranscoding(), |
400 | iconName: 'cog' | 400 | iconName: 'cog' |
401 | }, | 401 | }, |
@@ -406,8 +406,8 @@ export class VideoActionsDropdownComponent implements OnChanges { | |||
406 | iconName: 'delete' | 406 | iconName: 'delete' |
407 | }, | 407 | }, |
408 | { | 408 | { |
409 | label: $localize`Delete WebTorrent files`, | 409 | label: $localize`Delete Web Video files`, |
410 | handler: ({ video }) => this.removeVideoFiles(video, 'webtorrent'), | 410 | handler: ({ video }) => this.removeVideoFiles(video, 'web-videos'), |
411 | isDisplayed: () => this.displayOptions.removeFiles && this.canRemoveVideoFiles(), | 411 | isDisplayed: () => this.displayOptions.removeFiles && this.canRemoveVideoFiles(), |
412 | iconName: 'delete' | 412 | iconName: 'delete' |
413 | } | 413 | } |