allow reanalysis in case of requests

This commit is contained in:
Timo Bejan 2020-11-08 23:06:13 +02:00
parent a823e5bc6e
commit 37b6fb5304
2 changed files with 10 additions and 4 deletions

View File

@ -116,7 +116,7 @@ export class ProjectListingScreenComponent implements OnInit {
}
public downloadRedactionReport($event: MouseEvent, project: Project) {
$event.preventDefault();
$event.stopPropagation();
this.appStateService.downloadRedactionReport(project);
}
@ -145,7 +145,7 @@ export class ProjectListingScreenComponent implements OnInit {
}
public reanalyseProject($event: MouseEvent, project: Project) {
$event.preventDefault();
$event.stopPropagation();
this.appStateService.reanalyseProject(project);
}

View File

@ -157,6 +157,10 @@ export class AppStateService {
return this._appState.dictionaryVersion;
}
get rulesVersion() {
return this._appState.ruleVersion;
}
get isActiveProjectOwner() {
return this._appState.activeProject?.project?.ownerId === this._userService.userId;
}
@ -583,7 +587,8 @@ export class AppStateService {
}
return (
(!fileStatus.isApproved && this.fileNotUpToDateWithDictionary(fileStatus)) ||
fileStatus.isError
fileStatus.isError ||
fileStatus.hasRequests
);
}
@ -595,7 +600,8 @@ export class AppStateService {
(fileStatus.status === 'UNASSIGNED' ||
fileStatus.status === 'UNDER_REVIEW' ||
fileStatus.status === 'UNDER_APPROVAL') &&
(fileStatus.dictionaryVersion !== this.dictionaryVersion || fileStatus.hasRequests)
(fileStatus.dictionaryVersion !== this.dictionaryVersion ||
fileStatus.rulesVersion !== this.rulesVersion)
);
}