From 14e2014acc1362cfbb770c051a7254b156cd8efb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Dec 2018 14:52:50 +0100 Subject: Support additional video extensions --- client/src/app/shared/forms/peertube-checkbox.component.html | 4 ++-- client/src/app/shared/forms/peertube-checkbox.component.ts | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/forms/peertube-checkbox.component.html b/client/src/app/shared/forms/peertube-checkbox.component.html index fb3006b53..7b8bcf601 100644 --- a/client/src/app/shared/forms/peertube-checkbox.component.html +++ b/client/src/app/shared/forms/peertube-checkbox.component.html @@ -1,10 +1,10 @@
-
\ No newline at end of file + diff --git a/client/src/app/shared/forms/peertube-checkbox.component.ts b/client/src/app/shared/forms/peertube-checkbox.component.ts index bbc9904df..c1a6915e8 100644 --- a/client/src/app/shared/forms/peertube-checkbox.component.ts +++ b/client/src/app/shared/forms/peertube-checkbox.component.ts @@ -19,8 +19,7 @@ export class PeertubeCheckboxComponent implements ControlValueAccessor { @Input() labelText: string @Input() labelHtml: string @Input() helpHtml: string - - isDisabled = false + @Input() disabled = false propagateChange = (_: any) => { /* empty */ } @@ -41,6 +40,6 @@ export class PeertubeCheckboxComponent implements ControlValueAccessor { } setDisabledState (isDisabled: boolean) { - this.isDisabled = isDisabled + this.disabled = isDisabled } } -- cgit v1.2.3