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, 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,