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