Bulk undo approval

This commit is contained in:
Adina Țeudan 2021-01-08 20:17:53 +02:00
parent 902f518357
commit 4ae020f773
2 changed files with 9 additions and 4 deletions

View File

@ -43,6 +43,10 @@
icon="red:approved"
></redaction-circle-button>
<!-- Back to approval -->
<redaction-circle-button (action)="setToUnderApproval()" *ngIf="canUndoApproval" tooltip="project-overview.under-approval" type="dark-bg" icon="red:undo">
</redaction-circle-button>
<redaction-circle-button
(action)="reanalyse()"
*ngIf="canReanalyse"

View File

@ -32,10 +32,6 @@ export class BulkActionsComponent {
return this.selectedFileIds.map((fileId) => this._appStateService.getFileById(this._appStateService.activeProject.project.projectId, fileId));
}
private get _hasOutdatedDocuments() {
return this.selectedFiles.filter((file) => this._permissionsService.fileRequiresReanalysis(file)).length > 0;
}
public get areAllFilesSelected() {
return this._appStateService.activeProject.files.length !== 0 && this.selectedFileIds.length === this._appStateService.activeProject.files.length;
}
@ -119,6 +115,11 @@ export class BulkActionsComponent {
});
}
// Undo approval
public get canUndoApproval() {
return this.selectedFiles.reduce((acc, file) => acc && this._permissionsService.canUndoApproval(file), true);
}
// Bulk Download
downloadRedactedFiles() {
this._fileManagementControllerService