allow reanalysis in case of requests
This commit is contained in:
parent
a823e5bc6e
commit
37b6fb5304
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user