ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix share and download input URL accessibility
Chocobozzz5459364b192f
diff --git a/client/src/app/shared/shared-forms/input-text.component.html b/client/src/app/shared/shared-forms/input-text.component.htmlindex 4ea382beee..dbffcc2505 100644--- a/client/src/app/shared/shared-forms/input-text.component.html+++ b/client/src/app/shared/shared-forms/input-text.component.html@@ -4,6 +4,7 @@[(ngModel)]="value" (ngModelChange)="update()" [readonly]="readonly"#input (click)="input.select()" (input)="update()" (change)="update()" [type]="inputType" class="form-control"[ngClass]="{ 'input-error': formError }"+ [attr.aria-label]="ariaLabel"/><button *ngIf="withToggle" (click)="toggle()" type="button" class="btn btn-outline-secondary" [title]="toggleTitle">diff --git a/client/src/app/shared/shared-forms/input-text.component.ts b/client/src/app/shared/shared-forms/input-text.component.tsindex b07708d789..aa4f06f211 100644--- a/client/src/app/shared/shared-forms/input-text.component.ts+++ b/client/src/app/shared/shared-forms/input-text.component.ts@@ -34,6 +34,7 @@ export class InputTextComponent implements ControlValueAccessor, AfterViewInit {@Input() show = false@Input() formError: string | FormReactiveErrors | FormReactiveErrors[]@Input() autofocus = false+ @Input() ariaLabel: stringget inputType () {return this.showdiff --git a/client/src/app/shared/shared-share-modal/video-share.component.html b/client/src/app/shared/shared-share-modal/video-share.component.htmlindex c724342b3e..64e7a218c1 100644--- a/client/src/app/shared/shared-share-modal/video-share.component.html+++ b/client/src/app/shared/shared-share-modal/video-share.component.html@@ -28,7 +28,10 @@<ng-template ngbNavContent><div class="nav-content">- <my-input-text [value]="playlistUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-text>+ <my-input-text+ inputId="playlist-url" i18n-ariaLabel ariaLabel="Playlist URL"+ [value]="playlistUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"+ ></my-input-text></div></ng-template></ng-container>@@ -49,6 +52,7 @@<ng-template ngbNavContent><div class="nav-content"><my-input-text+ inputId="playlist-embed-url" i18n-ariaLabel ariaLabel="Playlist embed URL"[value]="customizations.onlyEmbedUrl ? playlistEmbedUrl : playlistEmbedHTML" (change)="onUpdate()"[withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-text>@@ -118,7 +122,10 @@<ng-template ngbNavContent><div class="nav-content">- <my-input-text [value]="videoUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-text>+ <my-input-text+ inputId="video-url" i18n-ariaLabel ariaLabel="Video URL"+ [value]="videoUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"+ ></my-input-text></div></ng-template></ng-container>@@ -139,6 +146,7 @@<ng-template ngbNavContent><div class="nav-content"><my-input-text+ inputId="video-embed-url" i18n-ariaLabel ariaLabel="Video embed URL"[value]="customizations.onlyEmbedUrl ? videoEmbedUrl : videoEmbedHTML" (ngModelChange)="onUpdate()"[withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-text>diff --git a/client/src/app/shared/shared-video-miniature/download/subtitle-files-download.component.html b/client/src/app/shared/shared-video-miniature/download/subtitle-files-download.component.htmlindex 5f9a3d3e0b..0780eece4e 100644--- a/client/src/app/shared/shared-video-miniature/download/subtitle-files-download.component.html+++ b/client/src/app/shared/shared-video-miniature/download/subtitle-files-download.component.html@@ -9,7 +9,10 @@<ng-template ngbNavContent><div class="nav-content">- <my-input-text [show]="true" [readonly]="true" [withCopy]="true" [withToggle]="false" [value]="getCaptionLink()"></my-input-text>+ <my-input-text+ inputId="subtitle-url" i18n-ariaLabel ariaLabel="Subtitle URL"+ [show]="true" [readonly]="true" [withCopy]="true" [withToggle]="false" [value]="getCaptionLink()"+ ></my-input-text></div></ng-template></li>diff --git a/client/src/app/shared/shared-video-miniature/download/video-files-download.component.html b/client/src/app/shared/shared-video-miniature/download/video-files-download.component.htmlindex 34986c820f..53cbd22018 100644--- a/client/src/app/shared/shared-video-miniature/download/video-files-download.component.html+++ b/client/src/app/shared/shared-video-miniature/download/video-files-download.component.html@@ -6,7 +6,11 @@<ng-template #rootNavContent><div class="nav-content">- <my-input-text [show]="true" [readonly]="true" [withCopy]="true" [withToggle]="false" [value]="getVideoFileLink()"></my-input-text>+ <my-input-text+ inputId="video-file-link"+ i18n-ariaLabel ariaLabel="Video file link"+ [show]="true" [readonly]="true" [withCopy]="true" [withToggle]="false" [value]="getVideoFileLink()"+ ></my-input-text></div></ng-template>