set context (#10391)

This commit is contained in:
Alan Ren
2020-05-14 10:56:58 -07:00
committed by GitHub
parent 35236a6107
commit 3212b06d49

View File

@@ -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<IAction>, this._component.actionsContext), { icon: true, label: false });
}
}