dictionaries based on backend flag

This commit is contained in:
Timo 2021-02-18 19:18:02 +02:00
parent b2724c9206
commit 42a16f11b5
4 changed files with 6 additions and 5 deletions

View File

@ -77,10 +77,8 @@ export class ManualAnnotationDialogComponent implements OnInit {
for (const key of Object.keys(this._appStateService.dictionaryData[this._appStateService.activeProject.ruleSetId])) {
const dictionaryData = this._appStateService.getDictionaryTypeValue(key);
if (!dictionaryData.virtual && !(dictionaryData.type.indexOf('recommendation_') === 0)) {
if (!dictionaryData.hint && dictionaryData.type !== 'manual') {
this.redactionDictionaries.push(dictionaryData);
}
if (!dictionaryData.virtual && dictionaryData.addToDictionaryAction) {
this.redactionDictionaries.push(dictionaryData);
}
}
this.redactionDictionaries.sort((a, b) => a.label.localeCompare(b.label));

View File

@ -7,7 +7,6 @@ import { TranslateService } from '@ngx-translate/core';
import { tap } from 'rxjs/operators';
import { UserService } from '../../../user/user.service';
import { PermissionsService } from '../../../common/service/permissions.service';
import { of } from 'rxjs';
@Injectable({
providedIn: 'root'

View File

@ -18,6 +18,8 @@ export interface TypeValue {
* True if the entries in this type should be matched case insensitively, default is false.
*/
caseInsensitive?: boolean;
addToDictionaryAction?: boolean;
defaultFilter?: boolean;
/**
* The value of color must be a correct hex color

View File

@ -18,6 +18,8 @@ export interface UpdateTypeValue {
* True if the entries in this type should be matched case insensitively, default is false.
*/
caseInsensitive?: boolean;
addToDictionaryAction?: boolean;
/**
* The value of color must be a correct hex color
*/