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, changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export class DictionaryScreenComponent implements OnInit { export class DictionaryScreenComponent implements OnInit {
readonly currentUser = getCurrentUser<User>(); protected readonly currentUser = getCurrentUser<User>();
readonly roles = Roles; protected readonly roles = Roles;
readonly initialEntries$ = new BehaviorSubject<List>([]); protected readonly initialEntries$ = new BehaviorSubject<List>([]);
readonly type: DictionaryType; protected readonly type: DictionaryType;
readonly entityType = getParam(ENTITY_TYPE); protected readonly entityType = getParam(ENTITY_TYPE);
isLeavingPage = false; protected readonly dossierTemplateId = getParam(DOSSIER_TEMPLATE_ID);
dossierTemplateId = getParam(DOSSIER_TEMPLATE_ID); protected isLeavingPage = false;
@ViewChild('dictionaryManager', { static: false }) @ViewChild('dictionaryManager', { static: false })
private readonly _dictionaryManager: DictionaryManagerComponent; private readonly _dictionaryManager: DictionaryManagerComponent;

View File

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