Pull request #85: RED-912: Bulk undo approval
Merge in RED/ui from RED-912 to master * commit '4ae020f77333eb8d7ac7a3c2a02cb659ed0a0fd5': Bulk undo approval
This commit is contained in:
commit
0ffd3caa03
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user