Added widget toastTargetId to the widgetContext

This commit is contained in:
Sergey Tarnavskiy 2021-11-02 17:03:44 +02:00
parent 3e67dc1c00
commit 4e1e8ce56b
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;