From 87946996ede0c09fe42aec715363cc7ae02bad00 Mon Sep 17 00:00:00 2001 From: Aditya Bist Date: Thu, 13 Sep 2018 14:22:57 -0700 Subject: [PATCH] added context to chart buttons so they work (#2575) --- src/sql/parts/query/editor/charting/chartView.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sql/parts/query/editor/charting/chartView.ts b/src/sql/parts/query/editor/charting/chartView.ts index 775ac6ba27..7b6a3827ca 100644 --- a/src/sql/parts/query/editor/charting/chartView.ts +++ b/src/sql/parts/query/editor/charting/chartView.ts @@ -172,7 +172,7 @@ export class ChartView implements IPanelView { }); } } - // if we have the necessary information but the information isn't avaiable yet, + // if we have the necessary information but the information isn't available yet, // we should be smart and retrying when the information might be available } } @@ -211,6 +211,7 @@ export class ChartView implements IPanelView { private updateActionbar() { if (this.insight && this.insight.isCopyable) { + this.taskbar.context = { insight: this.insight.insight, options: this.options }; this.taskbar.setContent([ { action: this._createInsightAction }, { action: this._copyAction },