Commit 1bc6ba4d144747d6ce13e134db648ef82f2bf4eb
1 parent
8686a026
Exists in
master
and in
17 other branches
Disable downloading data when HistoPlot is called in preview plot.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
js/app/views/PlotComponents/PlotPreviewUI.js
... | ... | @@ -178,6 +178,7 @@ Ext.define('amdaPlotComp.PlotPreviewUI', { |
178 | 178 | this.panelId = configResult.panelId; |
179 | 179 | //Solution temporaire |
180 | 180 | this.isPlotFunction = configResult.plotFile.includes("plotFunction") || configResult.plotFile.includes("histoPlot"); |
181 | + this.disableDownloadingData = configResult.plotFile.includes("histoPlot"); | |
181 | 182 | this.plotFile = configResult.plotFile; |
182 | 183 | |
183 | 184 | this.coordinatesField = new Ext.toolbar.TextItem({ |
... | ... | @@ -272,7 +273,7 @@ Ext.define('amdaPlotComp.PlotPreviewUI', { |
272 | 273 | dock: 'top', |
273 | 274 | items: [ |
274 | 275 | this.gotoDateGroup, |
275 | - this.downloadDataBtn, | |
276 | + me.disableDownloadingData ? null: this.downloadDataBtn, | |
276 | 277 | ] |
277 | 278 | } |
278 | 279 | var mouseToolbar = { |
... | ... |