Commit 7661455adc9c8d89aada17c96421afc3d1f9b631

Authored by Hacene SI HADJ MOHAND
1 parent 2a243af4

rm_6829

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
js/app/views/PlotComponents/PlotTree.js
@@ -692,9 +692,10 @@ Ext.define('amdaPlotComp.PlotTree', { @@ -692,9 +692,10 @@ Ext.define('amdaPlotComp.PlotTree', {
692 this.dropParamToCreate(targetNode, position, "#" + record.get('text')); 692 this.dropParamToCreate(targetNode, position, "#" + record.get('text'));
693 return true; 693 return true;
694 case 'amdaModel.DerivedParamNode' : 694 case 'amdaModel.DerivedParamNode' :
695 - if (!record.get('isParameter')) 695 + if (!record.get('isParameter'))
696 return false; 696 return false;
697 //targetNode, position, paramId, paramComponents, isVector, plotOnly 697 //targetNode, position, paramId, paramComponents, isVector, plotOnly
  698 + var isVector = record.get('iconCls') == 'icon-vector';
698 var components = null; 699 var components = null;
699 var dim1=record.get("dim_1"); 700 var dim1=record.get("dim_1");
700 var dim2=record.get("dim_2"); 701 var dim2=record.get("dim_2");
@@ -707,7 +708,7 @@ Ext.define('amdaPlotComp.PlotTree', { @@ -707,7 +708,7 @@ Ext.define('amdaPlotComp.PlotTree', {
707 components = []; 708 components = [];
708 components['index1'] ="0" 709 components['index1'] ="0"
709 } 710 }
710 - this.dropParamToCreate(targetNode, position, "ws_" + record.get('text'),components); 711 + this.dropParamToCreate(targetNode, position, "ws_" + record.get('text'),components,isVector);
711 return true; 712 return true;
712 case 'amdaModel.DerivedParamComponentNode': 713 case 'amdaModel.DerivedParamComponentNode':
713 if (!record.get('isParameter')) 714 if (!record.get('isParameter'))