UI: ability to use shared home components in custom dialog

This commit is contained in:
Chantsova Ekaterina 2021-09-24 17:53:46 +03:00
parent 3f000106d1
commit 10c742a976

View File

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