From 352b07306257d25c663eed7aa1f46ef894ca11fb Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Fri, 10 Apr 2020 14:12:40 +0300 Subject: [PATCH] UI: Fixed add user dialog --- .../home/components/entity/entities-table.component.ts | 2 +- ui-ngx/src/app/modules/home/pages/user/user.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/entity/entities-table.component.ts b/ui-ngx/src/app/modules/home/components/entity/entities-table.component.ts index ac40bc7587..7b0fff61b0 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entities-table.component.ts +++ b/ui-ngx/src/app/modules/home/components/entity/entities-table.component.ts @@ -110,7 +110,7 @@ export class EntitiesTableComponent extends PageComponent implements AfterViewIn private viewInited = false; constructor(protected store: Store, - private route: ActivatedRoute, + public route: ActivatedRoute, public translate: TranslateService, public dialog: MatDialog, private dialogService: DialogService, diff --git a/ui-ngx/src/app/modules/home/pages/user/user.component.ts b/ui-ngx/src/app/modules/home/pages/user/user.component.ts index bb1b1d272e..07567267db 100644 --- a/ui-ngx/src/app/modules/home/pages/user/user.component.ts +++ b/ui-ngx/src/app/modules/home/pages/user/user.component.ts @@ -14,7 +14,7 @@ /// limitations under the License. /// -import { Component, Inject } from '@angular/core'; +import { Component, Inject, Optional } from '@angular/core'; import { select, Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; import { EntityComponent } from '../../components/entity/entity.component'; @@ -41,8 +41,8 @@ export class UserComponent extends EntityComponent { ); constructor(protected store: Store, - @Inject('entity') protected entityValue: User, - @Inject('entitiesTableConfig') protected entitiesTableConfigValue: EntityTableConfig, + @Optional() @Inject('entity') protected entityValue: User, + @Optional() @Inject('entitiesTableConfig') protected entitiesTableConfigValue: EntityTableConfig, public fb: FormBuilder) { super(store, fb, entityValue, entitiesTableConfigValue); }