diff --git a/js/app/views/PlotComponents/PlotPreviewUI.js b/js/app/views/PlotComponents/PlotPreviewUI.js index 2aeffed..ae0f725 100644 --- a/js/app/views/PlotComponents/PlotPreviewUI.js +++ b/js/app/views/PlotComponents/PlotPreviewUI.js @@ -178,6 +178,7 @@ Ext.define('amdaPlotComp.PlotPreviewUI', { this.panelId = configResult.panelId; //Solution temporaire this.isPlotFunction = configResult.plotFile.includes("plotFunction") || configResult.plotFile.includes("histoPlot"); + this.disableDownloadingData = configResult.plotFile.includes("histoPlot"); this.plotFile = configResult.plotFile; this.coordinatesField = new Ext.toolbar.TextItem({ @@ -272,7 +273,7 @@ Ext.define('amdaPlotComp.PlotPreviewUI', { dock: 'top', items: [ this.gotoDateGroup, - this.downloadDataBtn, + me.disableDownloadingData ? null: this.downloadDataBtn, ] } var mouseToolbar = { -- libgit2 0.21.2