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
parent
commit
7446adbf05
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog.service.ts

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

Loading…
Cancel
Save