diff --git a/apps/red-ui/src/app/modules/admin/screens/entities/screens/dictionary/dictionary-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/entities/screens/dictionary/dictionary-screen.component.ts index 30dff241a..64bd31f8f 100644 --- a/apps/red-ui/src/app/modules/admin/screens/entities/screens/dictionary/dictionary-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/entities/screens/dictionary/dictionary-screen.component.ts @@ -17,13 +17,13 @@ import { getParam, List } from '@iqser/common-ui/lib/utils'; changeDetection: ChangeDetectionStrategy.OnPush, }) export class DictionaryScreenComponent implements OnInit { - readonly currentUser = getCurrentUser(); - readonly roles = Roles; - readonly initialEntries$ = new BehaviorSubject([]); - readonly type: DictionaryType; - readonly entityType = getParam(ENTITY_TYPE); - isLeavingPage = false; - dossierTemplateId = getParam(DOSSIER_TEMPLATE_ID); + protected readonly currentUser = getCurrentUser(); + protected readonly roles = Roles; + protected readonly initialEntries$ = new BehaviorSubject([]); + 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; diff --git a/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts b/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts index 494678bb2..aad279601 100644 --- a/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts @@ -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;