diff options
Diffstat (limited to 'src/plugins/plot/stackedPlot/StackedPlotViewProvider.js')
-rw-r--r-- | src/plugins/plot/stackedPlot/StackedPlotViewProvider.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/plot/stackedPlot/StackedPlotViewProvider.js b/src/plugins/plot/stackedPlot/StackedPlotViewProvider.js index 2ff60d9e6..f97ac6e8e 100644 --- a/src/plugins/plot/stackedPlot/StackedPlotViewProvider.js +++ b/src/plugins/plot/stackedPlot/StackedPlotViewProvider.js @@ -1,5 +1,5 @@ /***************************************************************************** - * Open MCT, Copyright (c) 2014-2021, United States Government + * Open MCT, Copyright (c) 2014-2022, United States Government * as represented by the Administrator of the National Aeronautics and Space * Administration. All rights reserved. * @@ -67,9 +67,16 @@ export default function StackedPlotViewProvider(openmct) { } }; }, - template: '<stacked-plot :options="options"></stacked-plot>' + template: '<stacked-plot ref="plotComponent" :options="options"></stacked-plot>' }); }, + getViewContext() { + if (!component) { + return {}; + } + + return component.$refs.plotComponent.getViewContext(); + }, destroy: function () { component.$destroy(); component = undefined; |