set context (#10391) (#10399)

This commit is contained in:
Alan Ren
2020-05-14 16:29:10 -07:00
committed by GitHub
parent b6632547a2
commit d84dd31491

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 });
}
}