False positive ist no longer virtual
This commit is contained in:
parent
7575b01b7e
commit
e1d89ea4f2
@ -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() {
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user