Bulk undo approval
This commit is contained in:
parent
902f518357
commit
4ae020f773
@ -43,6 +43,10 @@
|
|||||||
icon="red:approved"
|
icon="red:approved"
|
||||||
></redaction-circle-button>
|
></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
|
<redaction-circle-button
|
||||||
(action)="reanalyse()"
|
(action)="reanalyse()"
|
||||||
*ngIf="canReanalyse"
|
*ngIf="canReanalyse"
|
||||||
|
|||||||
@ -32,10 +32,6 @@ export class BulkActionsComponent {
|
|||||||
return this.selectedFileIds.map((fileId) => this._appStateService.getFileById(this._appStateService.activeProject.project.projectId, fileId));
|
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() {
|
public get areAllFilesSelected() {
|
||||||
return this._appStateService.activeProject.files.length !== 0 && this.selectedFileIds.length === this._appStateService.activeProject.files.length;
|
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
|
// Bulk Download
|
||||||
downloadRedactedFiles() {
|
downloadRedactedFiles() {
|
||||||
this._fileManagementControllerService
|
this._fileManagementControllerService
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user