From 70e335158499b0ac9e6da2193219d87512759876 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 Feb 2021 11:27:36 +0100 Subject: Small edit config refactor --- .../edit-live-configuration.component.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.ts') 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 a82a40a84..3328d28a9 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 @@ -42,7 +42,13 @@ export class EditLiveConfigurationComponent implements OnInit { getAvailableTranscodingProfile () { const profiles = this.serverConfig.live.transcoding.availableProfiles - return profiles.map(p => ({ id: p, label: p })) + return profiles.map(p => { + const description = p === 'default' + ? $localize`x264, targeting maximum device compatibility` + : '' + + return { id: p, label: p, description } + }) } getResolutionKey (resolution: string) { @@ -57,6 +63,14 @@ export class EditLiveConfigurationComponent implements OnInit { return this.editConfigurationService.isLiveEnabled(this.form) } + getDisabledLiveClass () { + return { 'disabled-checkbox-extra': !this.isLiveEnabled() } + } + + getDisabledLiveTranscodingClass () { + return { 'disabled-checkbox-extra': !this.isLiveEnabled() || !this.isLiveTranscodingEnabled() } + } + isLiveTranscodingEnabled () { return this.editConfigurationService.isLiveTranscodingEnabled(this.form) } -- cgit v1.2.3