Merge branch 'master' of github.com:thingsboard/thingsboard
This commit is contained in:
commit
148bb31195
@ -28,7 +28,7 @@ import {
|
|||||||
CustomDialogContainerData
|
CustomDialogContainerData
|
||||||
} from '@home/components/widget/dialog/custom-dialog-container.component';
|
} from '@home/components/widget/dialog/custom-dialog-container.component';
|
||||||
import { SHARED_MODULE_TOKEN } from '@shared/components/tokens';
|
import { SHARED_MODULE_TOKEN } from '@shared/components/tokens';
|
||||||
import { SHARED_HOME_COMPONENTS_MODULE_TOKEN } from '@home/components/tokens';
|
import { HOME_COMPONENTS_MODULE_TOKEN, SHARED_HOME_COMPONENTS_MODULE_TOKEN } from '@home/components/tokens';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CustomDialogService {
|
export class CustomDialogService {
|
||||||
@ -39,6 +39,7 @@ export class CustomDialogService {
|
|||||||
private dynamicComponentFactoryService: DynamicComponentFactoryService,
|
private dynamicComponentFactoryService: DynamicComponentFactoryService,
|
||||||
@Inject(SHARED_MODULE_TOKEN) private sharedModule: Type<any>,
|
@Inject(SHARED_MODULE_TOKEN) private sharedModule: Type<any>,
|
||||||
@Inject(SHARED_HOME_COMPONENTS_MODULE_TOKEN) private sharedHomeComponentsModule: Type<any>,
|
@Inject(SHARED_HOME_COMPONENTS_MODULE_TOKEN) private sharedHomeComponentsModule: Type<any>,
|
||||||
|
@Inject(HOME_COMPONENTS_MODULE_TOKEN) private homeComponentsModule: Type<any>,
|
||||||
public dialog: MatDialog
|
public dialog: MatDialog
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
@ -47,7 +48,7 @@ export class CustomDialogService {
|
|||||||
return this.dynamicComponentFactoryService.createDynamicComponentFactory(
|
return this.dynamicComponentFactoryService.createDynamicComponentFactory(
|
||||||
class CustomDialogComponentInstance extends CustomDialogComponent {},
|
class CustomDialogComponentInstance extends CustomDialogComponent {},
|
||||||
template,
|
template,
|
||||||
[this.sharedModule, CommonModule, this.sharedHomeComponentsModule]).pipe(
|
[this.sharedModule, CommonModule, this.sharedHomeComponentsModule, this.homeComponentsModule]).pipe(
|
||||||
mergeMap((factory) => {
|
mergeMap((factory) => {
|
||||||
const dialogData: CustomDialogContainerData = {
|
const dialogData: CustomDialogContainerData = {
|
||||||
controller,
|
controller,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user