Browse Source
Merge pull request #5479 from Terny22/toast-target-id
[3.3.2] UI: Added "toastTargetId" of widget-container to the "widgetContext" to be able showing toast-messages inside widget's area.
pull/5496/head
Igor Kulikov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
0 deletions
-
ui-ngx/src/app/modules/home/components/widget/widget.component.ts
-
ui-ngx/src/app/modules/home/models/widget-component.models.ts
|
|
@ -279,6 +279,7 @@ export class WidgetComponent extends PageComponent implements OnInit, AfterViewI |
|
|
this.widgetContext.servicesMap = ServicesMap; |
|
|
this.widgetContext.servicesMap = ServicesMap; |
|
|
this.widgetContext.isEdit = this.isEdit; |
|
|
this.widgetContext.isEdit = this.isEdit; |
|
|
this.widgetContext.isMobile = this.isMobile; |
|
|
this.widgetContext.isMobile = this.isMobile; |
|
|
|
|
|
this.widgetContext.toastTargetId = this.toastTargetId; |
|
|
|
|
|
|
|
|
this.widgetContext.subscriptionApi = { |
|
|
this.widgetContext.subscriptionApi = { |
|
|
createSubscription: this.createSubscription.bind(this), |
|
|
createSubscription: this.createSubscription.bind(this), |
|
|
|
|
|
@ -230,6 +230,7 @@ export class WidgetContext { |
|
|
$scope: IDynamicWidgetComponent; |
|
|
$scope: IDynamicWidgetComponent; |
|
|
isEdit: boolean; |
|
|
isEdit: boolean; |
|
|
isMobile: boolean; |
|
|
isMobile: boolean; |
|
|
|
|
|
toastTargetId: string; |
|
|
|
|
|
|
|
|
widgetNamespace?: string; |
|
|
widgetNamespace?: string; |
|
|
subscriptionApi?: WidgetSubscriptionApi; |
|
|
subscriptionApi?: WidgetSubscriptionApi; |
|
|
|