Project overview actions order
This commit is contained in:
parent
15adb8f26e
commit
40f41c70ec
@ -15,22 +15,6 @@
|
||||
icon="red:assign"
|
||||
></redaction-circle-button>
|
||||
|
||||
<redaction-circle-button
|
||||
(action)="reanalyse()"
|
||||
*ngIf="canReanalyse"
|
||||
tooltip="project-overview.bulk.reanalyse"
|
||||
type="dark-bg"
|
||||
icon="red:refresh"
|
||||
></redaction-circle-button>
|
||||
|
||||
<redaction-circle-button
|
||||
(action)="approveDocuments()"
|
||||
*ngIf="canApprove"
|
||||
tooltip="project-overview.approve"
|
||||
type="dark-bg"
|
||||
icon="red:check-alt"
|
||||
></redaction-circle-button>
|
||||
|
||||
<redaction-circle-button
|
||||
(action)="downloadRedactedFiles()"
|
||||
*ngIf="canDownloadRedactedFiles"
|
||||
@ -44,10 +28,26 @@
|
||||
*ngIf="canSetToUnderApproval"
|
||||
tooltip="project-overview.under-approval"
|
||||
type="dark-bg"
|
||||
icon="red:check-alt"
|
||||
icon="red:ready-for-approval"
|
||||
>
|
||||
</redaction-circle-button>
|
||||
|
||||
<redaction-circle-button (action)="setToUnderReview()" *ngIf="canSetToUnderReview" tooltip="project-overview.under-review" type="dark-bg" icon="red:refres">
|
||||
<redaction-circle-button (action)="setToUnderReview()" *ngIf="canSetToUnderReview" tooltip="project-overview.under-review" type="dark-bg" icon="red:undo">
|
||||
</redaction-circle-button>
|
||||
|
||||
<redaction-circle-button
|
||||
(action)="approveDocuments()"
|
||||
*ngIf="canApprove"
|
||||
tooltip="project-overview.approve"
|
||||
type="dark-bg"
|
||||
icon="red:approved"
|
||||
></redaction-circle-button>
|
||||
|
||||
<redaction-circle-button
|
||||
(action)="reanalyse()"
|
||||
*ngIf="canReanalyse"
|
||||
tooltip="project-overview.bulk.reanalyse"
|
||||
type="dark-bg"
|
||||
icon="red:refresh"
|
||||
></redaction-circle-button>
|
||||
</ng-container>
|
||||
|
||||
@ -87,6 +87,7 @@ export class BulkActionsComponent {
|
||||
public get canSetToUnderReview() {
|
||||
return this.selectedFiles.reduce((acc, file) => acc && this._permissionsService.canSetUnderReview(file), true);
|
||||
}
|
||||
|
||||
public setToUnderReview() {
|
||||
const promises = this.selectedFiles.map((file) => this._fileActionService.setFileUnderReview(file).toPromise());
|
||||
|
||||
|
||||
@ -60,6 +60,13 @@
|
||||
tooltipPosition="below"
|
||||
icon="red:report"
|
||||
></redaction-circle-button>
|
||||
<redaction-circle-button
|
||||
(action)="downloadRedactedFiles()"
|
||||
*ngIf="canDownloadRedactedFiles"
|
||||
tooltip="project-overview.header-actions.download-redacted-files"
|
||||
tooltipPosition="below"
|
||||
icon="red:download"
|
||||
></redaction-circle-button>
|
||||
<redaction-circle-button
|
||||
*ngIf="permissionsService.displayReanalyseBtn()"
|
||||
(action)="reanalyseProject()"
|
||||
@ -69,15 +76,6 @@
|
||||
tooltipPosition="below"
|
||||
icon="red:refresh"
|
||||
></redaction-circle-button>
|
||||
|
||||
<redaction-circle-button
|
||||
(action)="downloadRedactedFiles()"
|
||||
*ngIf="canDownloadRedactedFiles"
|
||||
tooltip="project-overview.header-actions.download-redacted-files"
|
||||
tooltipPosition="below"
|
||||
icon="red:download"
|
||||
></redaction-circle-button>
|
||||
|
||||
<redaction-circle-button
|
||||
class="ml-14"
|
||||
(action)="fileInput.click()"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user