ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix checkbox description relationship
Chocobozzzad396ec891dd
diff --git a/client/src/app/shared/shared-forms/peertube-checkbox.component.html b/client/src/app/shared/shared-forms/peertube-checkbox.component.htmlindex cd06e75ba6..1ea52896e6 100644--- a/client/src/app/shared/shared-forms/peertube-checkbox.component.html+++ b/client/src/app/shared/shared-forms/peertube-checkbox.component.html@@ -7,8 +7,9 @@(ngModelChange)="onModelChange()"[id]="inputName"[disabled]="disabled"+ [attr.aria-describedby]="inputName + '-description'"/>- <span role="checkbox" [attr.aria-checked]="checked" [attr.aria-label]="labelText || labelInnerHTML"></span>+ <span></span><span *ngIf="labelText">{{ labelText }}</span><span*ngIf="!labelText && labelInnerHTML"@@ -34,7 +35,7 @@</div><div class="ms-4 d-flex flex-column">- <div class="wrapper form-group-description">+ <div class="wrapper form-group-description" [id]="inputName + '-description'"><ng-content select="description"></ng-content></div>diff --git a/client/src/app/shared/shared-forms/peertube-checkbox.component.ts b/client/src/app/shared/shared-forms/peertube-checkbox.component.tsindex db5f1d83f5..6c78afa843 100644--- a/client/src/app/shared/shared-forms/peertube-checkbox.component.ts+++ b/client/src/app/shared/shared-forms/peertube-checkbox.component.ts@@ -27,6 +27,8 @@ export class PeertubeCheckboxComponent implements ControlValueAccessor, AfterCon@Input() disabled = false@Input() recommended = false+ describedby: string+@ContentChildren(PeerTubeTemplateDirective) templates: QueryList<PeerTubeTemplateDirective<'label' | 'help'>>labelTemplate: TemplateRef<any>diff --git a/client/src/app/shared/shared-user-settings/user-video-settings.component.ts b/client/src/app/shared/shared-user-settings/user-video-settings.component.tsindex bf474ecec3..ad2dddf591 100644--- a/client/src/app/shared/shared-user-settings/user-video-settings.component.ts+++ b/client/src/app/shared/shared-user-settings/user-video-settings.component.ts@@ -136,7 +136,7 @@ export class UserVideoSettingsComponent extends FormReactive implements OnInit,next: () => {this.authService.refreshUserInformation()- if (this.notifyOnUpdate) this.notifier.success($localize`Video settings updated.`)+ if (this.notifyOnUpdate) this.notifier.success($localize`Video settings updated.`, 'toto', 15000)},error: err => this.notifier.error(err.message)