False positive ist no longer virtual

This commit is contained in:
Timo 2021-04-27 16:32:34 +03:00
parent 7575b01b7e
commit e1d89ea4f2
3 changed files with 2 additions and 3 deletions

View File

@ -79,7 +79,7 @@ export class AnnotationWrapper {
}
get canBeMarkedAsFalsePositive() {
return this.superType === 'redaction' && (this.hasTextAfter || this.hasTextBefore) && !this.isImage;
return (this.isRecommendation || this.superType === 'redaction') && (this.hasTextAfter || this.hasTextBefore) && !this.isImage;
}
get canBeMarkedAsFalsePositiveWithTextOnly() {

View File

@ -42,7 +42,7 @@ export class DictionaryListingScreenComponent extends BaseListingComponent<TypeV
const appStateDictionaryData = this._appStateService.dictionaryData[this._appStateService.activeRuleSetId];
this.allEntities = Object.keys(appStateDictionaryData)
.map((key) => appStateDictionaryData[key])
.filter((d) => !d.virtual || d.type === 'false_positive');
.filter((d) => !d.virtual);
this.displayedEntities = [...this.allEntities];
const dataObs = this.allEntities.map((dict) =>
this._dictionaryControllerService.getDictionaryForType(dict.type, this._appStateService.activeRuleSetId).pipe(

View File

@ -509,7 +509,6 @@ export class AppStateService {
tap((typesResponse) => {
for (const type of typesResponse.types) {
dictionaryData[type.type] = type;
dictionaryData[type.type].virtual = type.type === 'false_positive';
dictionaryData[type.type].label = humanize(type.type, false);
}
})