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
This commit is contained in:
Igor Kulikov 2021-09-27 12:08:35 +03:00 committed by GitHub
commit 7446adbf05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,