UI: ability to use shared home components in custom dialog
This commit is contained in:
parent
3f000106d1
commit
10c742a976
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user