Commit 7446adbf051e31dab0b420a4d37fc0e6fb84d2fa
Committed by
GitHub
Merge pull request #5281 from ChantsovaEkaterina/improvement/shared-home-components-in-custom-dialog
[3.3.2] UI: ability to use shared home components in custom dialog
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -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, |