From 3212b06d4930603a5cde4149e115ced427e66ae6 Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Thu, 14 May 2020 10:56:58 -0700 Subject: [PATCH] set context (#10391) --- .../browser/contents/dashboardWidgetWrapper.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sql/workbench/contrib/dashboard/browser/contents/dashboardWidgetWrapper.component.ts b/src/sql/workbench/contrib/dashboard/browser/contents/dashboardWidgetWrapper.component.ts index 27a724feb0..9ec9ba792f 100644 --- a/src/sql/workbench/contrib/dashboard/browser/contents/dashboardWidgetWrapper.component.ts +++ b/src/sql/workbench/contrib/dashboard/browser/contents/dashboardWidgetWrapper.component.ts @@ -132,6 +132,7 @@ export class DashboardWidgetWrapper extends AngularDisposable implements OnInit } if (this._actions && this.toggleMore) { + this._actionbar.context = { target: this._actionbarRef.nativeElement }; this._actionbar.push(this.instantiationService.createInstance(ToggleMoreWidgetAction, this._actions as Array, this._component.actionsContext), { icon: true, label: false }); } }