diff --git a/js/app/views/PlotComponents/PlotTree.js b/js/app/views/PlotComponents/PlotTree.js index 86a7b79..4905100 100644 --- a/js/app/views/PlotComponents/PlotTree.js +++ b/js/app/views/PlotComponents/PlotTree.js @@ -692,9 +692,10 @@ Ext.define('amdaPlotComp.PlotTree', { this.dropParamToCreate(targetNode, position, "#" + record.get('text')); return true; case 'amdaModel.DerivedParamNode' : - if (!record.get('isParameter')) + if (!record.get('isParameter')) return false; //targetNode, position, paramId, paramComponents, isVector, plotOnly + var isVector = record.get('iconCls') == 'icon-vector'; var components = null; var dim1=record.get("dim_1"); var dim2=record.get("dim_2"); @@ -707,7 +708,7 @@ Ext.define('amdaPlotComp.PlotTree', { components = []; components['index1'] ="0" } - this.dropParamToCreate(targetNode, position, "ws_" + record.get('text'),components); + this.dropParamToCreate(targetNode, position, "ws_" + record.get('text'),components,isVector); return true; case 'amdaModel.DerivedParamComponentNode': if (!record.get('isParameter')) -- libgit2 0.21.2