X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fforms%2Fpeertube-checkbox.component.ts;h=c1a6915e8613c901ef780a237411d1cb46c4604e;hb=d3e56c0c4b307c99e83fbafb7f2c5884cbc20055;hp=bbc9904dfe8aa2ace1b58c28c289828a15849dcc;hpb=b4a929accf576edc733fde75a81dfad9a3d288ed;p=github%2FChocobozzz%2FPeerTube.git 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 } }