97 lines
3.4 KiB
HTML
97 lines
3.4 KiB
HTML
<div class="file-actions">
|
|
<button
|
|
(click)="openDeleteFileDialog($event, fileStatus)"
|
|
*ngIf="permissionsService.canDeleteFile(fileStatus)"
|
|
[matTooltip]="'project-overview.delete.action' | translate"
|
|
[matTooltipPosition]="tooltipPosition"
|
|
color="accent"
|
|
mat-icon-button
|
|
>
|
|
<mat-icon svgIcon="red:trash"></mat-icon>
|
|
</button>
|
|
<div
|
|
[matTooltip]="(fileStatus.isApproved ? 'report.action' : 'report.unavailable-single') | translate"
|
|
*ngIf="permissionsService.canShowRedactionReportDownloadBtn(fileStatus)"
|
|
[matTooltipPosition]="tooltipPosition"
|
|
>
|
|
<button (click)="downloadFileRedactionReport($event, fileStatus)" [disabled]="!fileStatus.isApproved" color="accent" mat-icon-button>
|
|
<mat-icon svgIcon="red:report"></mat-icon>
|
|
</button>
|
|
</div>
|
|
|
|
<button
|
|
(click)="reanalyseFile($event, fileStatus)"
|
|
class="warn"
|
|
*ngIf="permissionsService.canReanalyseFile(fileStatus) && screen === 'file-preview'"
|
|
mat-icon-button
|
|
#reanalyseTooltip="matTooltip"
|
|
[matTooltip]="'file-preview.reanalyse-notification' | translate"
|
|
matTooltipClass="warn small"
|
|
>
|
|
<mat-icon svgIcon="red:refresh"></mat-icon>
|
|
</button>
|
|
|
|
<button
|
|
(click)="reanalyseFile($event, fileStatus)"
|
|
*ngIf="permissionsService.canReanalyseFile(fileStatus) && screen !== 'file-preview'"
|
|
[matTooltip]="'project-overview.reanalyse.action' | translate"
|
|
[matTooltipPosition]="tooltipPosition"
|
|
color="accent"
|
|
mat-icon-button
|
|
>
|
|
<mat-icon svgIcon="red:refresh"></mat-icon>
|
|
</button>
|
|
|
|
<button
|
|
(click)="assignReviewer($event, fileStatus)"
|
|
*ngIf="permissionsService.canAssignReviewer(fileStatus)"
|
|
[matTooltip]="'project-overview.assign.action' | translate"
|
|
[matTooltipPosition]="tooltipPosition"
|
|
color="accent"
|
|
mat-icon-button
|
|
>
|
|
<mat-icon svgIcon="red:assign"></mat-icon>
|
|
</button>
|
|
|
|
<button
|
|
(click)="setFileApproved($event, fileStatus)"
|
|
*ngIf="permissionsService.canApprove(fileStatus)"
|
|
[matTooltip]="'project-overview.approve' | translate"
|
|
[matTooltipPosition]="tooltipPosition"
|
|
color="accent"
|
|
mat-icon-button
|
|
>
|
|
<mat-icon svgIcon="red:check-alt"></mat-icon>
|
|
</button>
|
|
<button
|
|
(click)="setFileUnderApproval($event, fileStatus)"
|
|
*ngIf="permissionsService.canSetUnderApproval(fileStatus)"
|
|
[matTooltip]="'project-overview.under-approval' | translate"
|
|
[matTooltipPosition]="tooltipPosition"
|
|
color="accent"
|
|
mat-icon-button
|
|
>
|
|
<mat-icon svgIcon="red:check-alt"></mat-icon>
|
|
</button>
|
|
<button
|
|
(click)="setFileUnderApproval($event, fileStatus)"
|
|
*ngIf="permissionsService.canUndoApproval(fileStatus)"
|
|
[matTooltip]="'project-overview.under-approval' | translate"
|
|
[matTooltipPosition]="tooltipPosition"
|
|
color="accent"
|
|
mat-icon-button
|
|
>
|
|
<mat-icon svgIcon="red:undo"></mat-icon>
|
|
</button>
|
|
<button
|
|
(click)="setFileUnderReview($event, fileStatus)"
|
|
*ngIf="permissionsService.canUndoUnderApproval(fileStatus)"
|
|
[matTooltip]="'project-overview.under-review' | translate"
|
|
[matTooltipPosition]="tooltipPosition"
|
|
color="accent"
|
|
mat-icon-button
|
|
>
|
|
<mat-icon svgIcon="red:undo"></mat-icon>
|
|
</button>
|
|
</div>
|