diff --git a/i18n/en.json b/i18n/en.json index 851b776b..3bbaf999 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -369,6 +369,7 @@ "batchModeButton": "Batch mode", "clickTagToAdd": "Click any tag in the tray to add the tag to all selected videos", "clickVideoToSelect": "Click videos to select", + "selectAllButton": "Select all visible", "closeTagTray": "Close tag tray", "delete": "delete mode", "filterList": "Containing", diff --git a/src/app/components/home.component.html b/src/app/components/home.component.html index 8a22cead..782c3058 100644 --- a/src/app/components/home.component.html +++ b/src/app/components/home.component.html @@ -942,6 +942,7 @@ {{ 'TAGS.clickTagToAdd' | translate }} + diff --git a/src/app/components/tag-tray/tag-tray.component.ts b/src/app/components/tag-tray/tag-tray.component.ts index dd8b3600..85fcd730 100644 --- a/src/app/components/tag-tray/tag-tray.component.ts +++ b/src/app/components/tag-tray/tag-tray.component.ts @@ -19,6 +19,7 @@ export class TagTrayComponent { @Output() closeTagsTray = new EventEmitter(); @Output() toggleBatchTaggingMode = new EventEmitter(); + @Output() selectAll = new EventEmitter(); @Output() handleTagWordClicked= new EventEmitter(); @Input() batchTaggingMode; diff --git a/src/app/pipes/pipe-side-effect.service.ts b/src/app/pipes/pipe-side-effect.service.ts index b4393ee6..556a6196 100644 --- a/src/app/pipes/pipe-side-effect.service.ts +++ b/src/app/pipes/pipe-side-effect.service.ts @@ -28,6 +28,15 @@ export class PipeSideEffectService { } + /** + * Set all displayed videos to selected + */ + selectAll(): void { + this.galleryShowing.forEach((element: ImageElement) => { + element.selected = true; + }); + } + /** * If pipe has an * @param error