Commit 352b07306257d25c663eed7aa1f46ef894ca11fb

Authored by Igor Kulikov
1 parent b12bd14e

UI: Fixed add user dialog

... ... @@ -110,7 +110,7 @@ export class EntitiesTableComponent extends PageComponent implements AfterViewIn
110 110 private viewInited = false;
111 111
112 112 constructor(protected store: Store<AppState>,
113   - private route: ActivatedRoute,
  113 + public route: ActivatedRoute,
114 114 public translate: TranslateService,
115 115 public dialog: MatDialog,
116 116 private dialogService: DialogService,
... ...
... ... @@ -14,7 +14,7 @@
14 14 /// limitations under the License.
15 15 ///
16 16
17   -import { Component, Inject } from '@angular/core';
  17 +import { Component, Inject, Optional } from '@angular/core';
18 18 import { select, Store } from '@ngrx/store';
19 19 import { AppState } from '@core/core.state';
20 20 import { EntityComponent } from '../../components/entity/entity.component';
... ... @@ -41,8 +41,8 @@ export class UserComponent extends EntityComponent<User> {
41 41 );
42 42
43 43 constructor(protected store: Store<AppState>,
44   - @Inject('entity') protected entityValue: User,
45   - @Inject('entitiesTableConfig') protected entitiesTableConfigValue: EntityTableConfig<User>,
  44 + @Optional() @Inject('entity') protected entityValue: User,
  45 + @Optional() @Inject('entitiesTableConfig') protected entitiesTableConfigValue: EntityTableConfig<User>,
46 46 public fb: FormBuilder) {
47 47 super(store, fb, entityValue, entitiesTableConfigValue);
48 48 }
... ...