diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-19 14:05:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-19 14:11:22 +0200 |
commit | 01283e2066314aaa167a2b0b55952b2ae26e650a (patch) | |
tree | 6ba58d8c0c6b42d72e0edebbce2edfa03fdabbbe /client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts | |
parent | be6162706703c2b2a715eaf7759c0f513a3fe765 (diff) | |
download | PeerTube-01283e2066314aaa167a2b0b55952b2ae26e650a.tar.gz PeerTube-01283e2066314aaa167a2b0b55952b2ae26e650a.tar.zst PeerTube-01283e2066314aaa167a2b0b55952b2ae26e650a.zip |
Improve remote runner config UX
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 | 8 |
1 files changed, 8 insertions, 0 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 e960533f9..0a1ebe8e2 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 | |||
@@ -58,6 +58,10 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges { | |||
58 | return 'transcoding.resolutions.' + resolution | 58 | return 'transcoding.resolutions.' + resolution |
59 | } | 59 | } |
60 | 60 | ||
61 | isRemoteRunnerVODEnabled () { | ||
62 | return this.editConfigurationService.isRemoteRunnerVODEnabled(this.form) | ||
63 | } | ||
64 | |||
61 | isTranscodingEnabled () { | 65 | isTranscodingEnabled () { |
62 | return this.editConfigurationService.isTranscodingEnabled(this.form) | 66 | return this.editConfigurationService.isTranscodingEnabled(this.form) |
63 | } | 67 | } |
@@ -70,6 +74,10 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges { | |||
70 | return { 'disabled-checkbox-extra': !this.isTranscodingEnabled() } | 74 | return { 'disabled-checkbox-extra': !this.isTranscodingEnabled() } |
71 | } | 75 | } |
72 | 76 | ||
77 | getLocalTranscodingDisabledClass () { | ||
78 | return { 'disabled-checkbox-extra': !this.isTranscodingEnabled() || this.isRemoteRunnerVODEnabled() } | ||
79 | } | ||
80 | |||
73 | getStudioDisabledClass () { | 81 | getStudioDisabledClass () { |
74 | return { 'disabled-checkbox-extra': !this.isStudioEnabled() } | 82 | return { 'disabled-checkbox-extra': !this.isStudioEnabled() } |
75 | } | 83 | } |