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-live-configuration.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-live-configuration.component.ts')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.ts index d4892a571..50b882cb8 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.ts | |||
@@ -71,6 +71,10 @@ export class EditLiveConfigurationComponent implements OnInit, OnChanges { | |||
71 | return this.editConfigurationService.isLiveEnabled(this.form) | 71 | return this.editConfigurationService.isLiveEnabled(this.form) |
72 | } | 72 | } |
73 | 73 | ||
74 | isRemoteRunnerLiveEnabled () { | ||
75 | return this.editConfigurationService.isRemoteRunnerLiveEnabled(this.form) | ||
76 | } | ||
77 | |||
74 | getDisabledLiveClass () { | 78 | getDisabledLiveClass () { |
75 | return { 'disabled-checkbox-extra': !this.isLiveEnabled() } | 79 | return { 'disabled-checkbox-extra': !this.isLiveEnabled() } |
76 | } | 80 | } |
@@ -79,6 +83,10 @@ export class EditLiveConfigurationComponent implements OnInit, OnChanges { | |||
79 | return { 'disabled-checkbox-extra': !this.isLiveEnabled() || !this.isLiveTranscodingEnabled() } | 83 | return { 'disabled-checkbox-extra': !this.isLiveEnabled() || !this.isLiveTranscodingEnabled() } |
80 | } | 84 | } |
81 | 85 | ||
86 | getDisabledLiveLocalTranscodingClass () { | ||
87 | return { 'disabled-checkbox-extra': !this.isLiveEnabled() || !this.isLiveTranscodingEnabled() || this.isRemoteRunnerLiveEnabled() } | ||
88 | } | ||
89 | |||
82 | isLiveTranscodingEnabled () { | 90 | isLiveTranscodingEnabled () { |
83 | return this.editConfigurationService.isLiveTranscodingEnabled(this.form) | 91 | return this.editConfigurationService.isLiveTranscodingEnabled(this.form) |
84 | } | 92 | } |