RED-8045 - fixed mr comments

This commit is contained in:
Valentin Mihai 2024-01-08 11:26:09 +02:00
parent 4953ed2e68
commit dc85025932
2 changed files with 8 additions and 8 deletions

View File

@ -17,13 +17,13 @@ import { getParam, List } from '@iqser/common-ui/lib/utils';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class DictionaryScreenComponent implements OnInit {
readonly currentUser = getCurrentUser<User>();
readonly roles = Roles;
readonly initialEntries$ = new BehaviorSubject<List>([]);
readonly type: DictionaryType;
readonly entityType = getParam(ENTITY_TYPE);
isLeavingPage = false;
dossierTemplateId = getParam(DOSSIER_TEMPLATE_ID);
protected readonly currentUser = getCurrentUser<User>();
protected readonly roles = Roles;
protected readonly initialEntries$ = new BehaviorSubject<List>([]);
protected readonly type: DictionaryType;
protected readonly entityType = getParam(ENTITY_TYPE);
protected readonly dossierTemplateId = getParam(DOSSIER_TEMPLATE_ID);
protected isLeavingPage = false;
@ViewChild('dictionaryManager', { static: false })
private readonly _dictionaryManager: DictionaryManagerComponent;

View File

@ -32,7 +32,7 @@ export class DictionaryManagerComponent implements OnChanges, OnInit {
@Input() type: DictionaryType = 'dictionary';
@Input() entityType?: string;
@Input() currentDossierId: string;
@Input() currentDossierTemplateId!: string;
@Input({ required: true }) currentDossierTemplateId!: string;
@Input() withFloatingActions = true;
@Input() initialEntries: List;
@Input() canEdit = false;