Browse Source
Merge pull request #12589 from vvlladd28/bug/expand-setting/lose-context
Fixed lose context when use expandSettingComponentMap in custom widgets
pull/12630/head
Andrew Shvayka
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
ui-ngx/src/app/modules/home/components/widget/widget-component.service.ts
|
|
|
@ -436,8 +436,8 @@ export class WidgetComponentService { |
|
|
|
basicDirectives.push(widgetInfo.basicModeDirective); |
|
|
|
} |
|
|
|
|
|
|
|
this.expandSettingComponentMap(this.widgetService.putWidgetSettingsComponentToMap, directives, modulesWithComponents); |
|
|
|
this.expandSettingComponentMap(this.widgetService.putBasicWidgetSettingsComponentToMap, basicDirectives, modulesWithComponents); |
|
|
|
this.expandSettingComponentMap(this.widgetService.putWidgetSettingsComponentToMap.bind(this.widgetService), directives, modulesWithComponents); |
|
|
|
this.expandSettingComponentMap(this.widgetService.putBasicWidgetSettingsComponentToMap.bind(this.widgetService), basicDirectives, modulesWithComponents); |
|
|
|
} |
|
|
|
|
|
|
|
private expandSettingComponentMap(putComponentToMap: (selector: string, comp: Type<IWidgetSettingsComponent | IBasicWidgetConfigComponent>) => void, |
|
|
|
|