Browse Source
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
pull/5285/head
Igor Kulikov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog.service.ts
|
|
|
@ -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, |
|
|
|
|