From e0f330df4f91c8fc9535b3a436bfb4bdec45e753 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 11 May 2021 08:56:20 +0300 Subject: [PATCH] bulk actions UI updates --- .../project-overview-bulk-actions.component.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/red-ui/src/app/modules/projects/components/bulk-actions/project-overview-bulk-actions.component.ts b/apps/red-ui/src/app/modules/projects/components/bulk-actions/project-overview-bulk-actions.component.ts index 88f35737c..766171f1a 100644 --- a/apps/red-ui/src/app/modules/projects/components/bulk-actions/project-overview-bulk-actions.component.ts +++ b/apps/red-ui/src/app/modules/projects/components/bulk-actions/project-overview-bulk-actions.component.ts @@ -15,9 +15,12 @@ import { ProjectsDialogService } from '../../services/projects-dialog.service'; styleUrls: ['./project-overview-bulk-actions.component.scss'] }) export class ProjectOverviewBulkActionsComponent { - @Input() selectedFileIds: string[]; - loading = false; - @Output() private _reload = new EventEmitter(); + @Input() + public selectedFileIds: string[]; + @Output() + public reload = new EventEmitter(); + + public loading = false; constructor( private readonly _appStateService: AppStateService, @@ -94,7 +97,7 @@ export class ProjectOverviewBulkActionsComponent { delete() { this.loading = true; this._dialogService.openDeleteFilesDialog(null, this._appStateService.activeProject.project.projectId, this.selectedFileIds, () => { - this._reload.emit(); + this.reload.emit(); this.loading = false; this.selectedFileIds.splice(0, this.selectedFileIds.length); }); @@ -103,7 +106,7 @@ export class ProjectOverviewBulkActionsComponent { assign() { this.loading = true; this._dialogService.openBulkAssignFileReviewerDialog(this.selectedFileIds, () => { - this._reload.emit(); + this.reload.emit(); this.loading = false; }); } @@ -132,7 +135,7 @@ export class ProjectOverviewBulkActionsComponent { private _performBulkAction(obs: Observable) { this.loading = true; obs.subscribe().add(() => { - this._reload.emit(); + this.reload.emit(); this.loading = false; }); }