diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-10 11:27:36 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-10 11:36:40 +0100 |
commit | 70e335158499b0ac9e6da2193219d87512759876 (patch) | |
tree | a46c8f5a19592f93afc3a48996e55bfaa362f2ed /client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts | |
parent | 5f46d28ccac4a20fcbb12c96a047a84a08e485ae (diff) | |
download | PeerTube-70e335158499b0ac9e6da2193219d87512759876.tar.gz PeerTube-70e335158499b0ac9e6da2193219d87512759876.tar.zst PeerTube-70e335158499b0ac9e6da2193219d87512759876.zip |
Small edit config refactor
Diffstat (limited to 'client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts index d745912a0..b864f1bc4 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts | |||
@@ -34,7 +34,13 @@ export class EditVODTranscodingComponent implements OnInit { | |||
34 | getAvailableTranscodingProfile () { | 34 | getAvailableTranscodingProfile () { |
35 | const profiles = this.serverConfig.transcoding.availableProfiles | 35 | const profiles = this.serverConfig.transcoding.availableProfiles |
36 | 36 | ||
37 | return profiles.map(p => ({ id: p, label: p })) | 37 | return profiles.map(p => { |
38 | const description = p === 'default' | ||
39 | ? $localize`x264, targeting maximum device compatibility` | ||
40 | : '' | ||
41 | |||
42 | return { id: p, label: p, description } | ||
43 | }) | ||
38 | } | 44 | } |
39 | 45 | ||
40 | getResolutionKey (resolution: string) { | 46 | getResolutionKey (resolution: string) { |
@@ -45,6 +51,10 @@ export class EditVODTranscodingComponent implements OnInit { | |||
45 | return this.editConfigurationService.isTranscodingEnabled(this.form) | 51 | return this.editConfigurationService.isTranscodingEnabled(this.form) |
46 | } | 52 | } |
47 | 53 | ||
54 | getTranscodingDisabledClass () { | ||
55 | return { 'disabled-checkbox-extra': !this.isTranscodingEnabled() } | ||
56 | } | ||
57 | |||
48 | getTotalTranscodingThreads () { | 58 | getTotalTranscodingThreads () { |
49 | return this.editConfigurationService.getTotalTranscodingThreads(this.form) | 59 | return this.editConfigurationService.getTotalTranscodingThreads(this.form) |
50 | } | 60 | } |