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.
This commit is contained in:
Igor Kulikov 2021-11-03 16:36:45 +02:00 committed by GitHub
commit 460418acbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -279,6 +279,7 @@ export class WidgetComponent extends PageComponent implements OnInit, AfterViewI
this.widgetContext.servicesMap = ServicesMap;
this.widgetContext.isEdit = this.isEdit;
this.widgetContext.isMobile = this.isMobile;
this.widgetContext.toastTargetId = this.toastTargetId;
this.widgetContext.subscriptionApi = {
createSubscription: this.createSubscription.bind(this),

View File

@ -230,6 +230,7 @@ export class WidgetContext {
$scope: IDynamicWidgetComponent;
isEdit: boolean;
isMobile: boolean;
toastTargetId: string;
widgetNamespace?: string;
subscriptionApi?: WidgetSubscriptionApi;