bulk actions UI updates
This commit is contained in:
parent
abb6af23ed
commit
e0f330df4f
@ -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<any>) {
|
||||
this.loading = true;
|
||||
obs.subscribe().add(() => {
|
||||
this._reload.emit();
|
||||
this.reload.emit();
|
||||
this.loading = false;
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user