dictionaries based on backend flag
This commit is contained in:
parent
b2724c9206
commit
42a16f11b5
@ -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));
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user