Commit 10c742a97682557a05789f2cbde8ddc123cf5baf

Authored by Chantsova Ekaterina
1 parent 3f000106

UI: ability to use shared home components in custom dialog

@@ -28,6 +28,7 @@ import { @@ -28,6 +28,7 @@ import {
28 CustomDialogContainerComponent, 28 CustomDialogContainerComponent,
29 CustomDialogContainerData 29 CustomDialogContainerData
30 } from '@home/components/widget/dialog/custom-dialog-container.component'; 30 } from '@home/components/widget/dialog/custom-dialog-container.component';
  31 +import { SharedHomeComponentsModule } from '@home/components/shared-home-components.module';
31 32
32 @Injectable() 33 @Injectable()
33 export class CustomDialogService { 34 export class CustomDialogService {
@@ -44,7 +45,7 @@ export class CustomDialogService { @@ -44,7 +45,7 @@ export class CustomDialogService {
44 return this.dynamicComponentFactoryService.createDynamicComponentFactory( 45 return this.dynamicComponentFactoryService.createDynamicComponentFactory(
45 class CustomDialogComponentInstance extends CustomDialogComponent {}, 46 class CustomDialogComponentInstance extends CustomDialogComponent {},
46 template, 47 template,
47 - [SharedModule, CustomDialogModule]).pipe( 48 + [SharedModule, CustomDialogModule, SharedHomeComponentsModule]).pipe(
48 mergeMap((factory) => { 49 mergeMap((factory) => {
49 const dialogData: CustomDialogContainerData = { 50 const dialogData: CustomDialogContainerData = {
50 controller, 51 controller,