bulk reanalyse fix
This commit is contained in:
parent
fa5bf6f923
commit
0de16b75f4
@ -53,7 +53,10 @@ export class PermissionsService {
|
||||
if (!fileStatus) {
|
||||
fileStatus = this._appStateService.activeFile;
|
||||
}
|
||||
return (this.fileRequiresReanalysis(fileStatus) && this.isReviewerOrOwner(fileStatus)) || (fileStatus.isError && fileStatus.isUnassigned);
|
||||
return (
|
||||
(this.fileRequiresReanalysis(fileStatus) && (this.isReviewerOrOwner(fileStatus) || fileStatus.isUnassigned)) ||
|
||||
(fileStatus.isError && fileStatus.isUnassigned)
|
||||
);
|
||||
}
|
||||
|
||||
isFileReviewer(fileStatus?: FileStatusWrapper) {
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
</button>
|
||||
|
||||
<div [matTooltip]="reanalyseTooltip | translate" matTooltipPosition="above">
|
||||
<button (click)="reanalyse()" *ngIf="canReanalyse()" [disabled]="reanalyseDisabled" class="dark" color="accent" mat-icon-button>
|
||||
<button (click)="reanalyse()" [disabled]="reanalyseDisabled" class="dark" color="accent" mat-icon-button>
|
||||
<mat-icon svgIcon="red:refresh"></mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@ -49,10 +49,6 @@ export class BulkActionsComponent {
|
||||
return this.selectedFiles.reduce((acc, file) => acc && this._permissionsService.canAssignReviewer(file), true);
|
||||
}
|
||||
|
||||
public canReanalyse() {
|
||||
return this._permissionsService.isProjectMember();
|
||||
}
|
||||
|
||||
public get reanalyseDisabled() {
|
||||
return !this.selectedFiles.reduce((acc, file) => acc && this._permissionsService.canReanalyseFile(file), true);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user