diff --git a/js/app/models/DownloadNode.js b/js/app/models/DownloadNode.js index 1ca4a42..4f1c99a 100644 --- a/js/app/models/DownloadNode.js +++ b/js/app/models/DownloadNode.js @@ -92,8 +92,12 @@ Ext.define('amdaModel.DownloadNode', { myParam['dim2-max-range'] = param.get('dim2-max-range'), myParam['dim2-index'] = param.get('dim2-index'), myParam.template_args = param.get('template_args'); - myValues.list[i] = myParam; - ++i; + if (!param.get('plotonly')) { + myValues.list[i] = myParam; + ++i; + } + else + alert('Parameter '+ myParam.paramid + ' is PlotOnly'); }); }); if (tab.get('multi-plot-linked')) diff --git a/js/app/models/PlotObjects/PlotPanelObject.js b/js/app/models/PlotObjects/PlotPanelObject.js index 883138e..4f97cdf 100644 --- a/js/app/models/PlotObjects/PlotPanelObject.js +++ b/js/app/models/PlotObjects/PlotPanelObject.js @@ -280,13 +280,14 @@ Ext.define('amdaPlotObj.PlotPanelObject', { } }, - createNewParam: function(paramId, paramComponents, isVector, onAfterCreate) { + createNewParam: function(paramId, paramComponents, isVector, plotOnly, onAfterCreate) { this.set('last-param-id', this.get('last-param-id') + 1); var emptyPanel = (this.params().getCount() == 0); var recs = this.params().add({id : this.get('last-param-id')}); recs[0].set('paramid', paramId); + recs[0].set('plotonly', plotOnly); if (paramComponents) { if (paramComponents['index1']) { diff --git a/js/app/models/RequestParamObject.js b/js/app/models/RequestParamObject.js index 796688d..e121cb4 100644 --- a/js/app/models/RequestParamObject.js +++ b/js/app/models/RequestParamObject.js @@ -30,7 +30,8 @@ Ext.define('amdaModel.RequestParamObject', { {name: 'dim2-min-range', type: 'float', defaultValue: 0.}, {name: 'dim2-max-range', type: 'float', defaultValue: 0.}, {name: 'dim2-index', type: 'string', defaultValue: '*'}, - {name: 'template_args', type: 'auto', defaultValue: null} + {name: 'template_args', type: 'auto', defaultValue: null}, + {name: 'plotonly', type: 'bool', defaultValue: false} ], getParamFullName : function() { diff --git a/js/app/views/PlotComponents/PlotTree.js b/js/app/views/PlotComponents/PlotTree.js index 5afa20a..69f6a44 100644 --- a/js/app/views/PlotComponents/PlotTree.js +++ b/js/app/views/PlotComponents/PlotTree.js @@ -602,7 +602,7 @@ Ext.define('amdaPlotComp.PlotTree', { return false; }, - dropParamToCreate : function(targetNode, position, paramId, paramComponents, isVector) + dropParamToCreate : function(targetNode, position, paramId, paramComponents, isVector, plotOnly) { var panelObject = null; if (targetNode == null) @@ -636,7 +636,7 @@ Ext.define('amdaPlotComp.PlotTree', { //Create param object var me = this; - panelObject.createNewParam(paramId, paramComponents, isVector, function (newParamObject) { + panelObject.createNewParam(paramId, paramComponents, isVector, plotOnly, function (newParamObject) { //Rebuild params node me.buildPanelsNode(newParamObject.getId()); //BRE newParamObject @@ -667,6 +667,7 @@ Ext.define('amdaPlotComp.PlotTree', { var isVector = record.get('iconCls') == 'icon-vector'; var component_info = record.get('component_info'); var param_id = record.get('id'); + var plot_only = record.get('notyet'); var components = null; if (component_info && component_info.parentId) { //It's a component @@ -677,7 +678,7 @@ Ext.define('amdaPlotComp.PlotTree', { if (component_info.index2) components['index2'] = component_info.index2; } - this.dropParamToCreate(targetNode, position, param_id, components, isVector); + this.dropParamToCreate(targetNode, position, param_id, components, isVector, plot_only); } return true; case 'amdaModel.AliasNode' : -- libgit2 0.21.2