UI: Fixed add user dialog

This commit is contained in:
Igor Kulikov 2020-04-10 14:12:40 +03:00
parent b12bd14e10
commit 352b073062
2 changed files with 4 additions and 4 deletions

View File

@ -110,7 +110,7 @@ export class EntitiesTableComponent extends PageComponent implements AfterViewIn
private viewInited = false;
constructor(protected store: Store<AppState>,
private route: ActivatedRoute,
public route: ActivatedRoute,
public translate: TranslateService,
public dialog: MatDialog,
private dialogService: DialogService,

View File

@ -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<User> {
);
constructor(protected store: Store<AppState>,
@Inject('entity') protected entityValue: User,
@Inject('entitiesTableConfig') protected entitiesTableConfigValue: EntityTableConfig<User>,
@Optional() @Inject('entity') protected entityValue: User,
@Optional() @Inject('entitiesTableConfig') protected entitiesTableConfigValue: EntityTableConfig<User>,
public fb: FormBuilder) {
super(store, fb, entityValue, entitiesTableConfigValue);
}