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 692 this.dropParamToCreate(targetNode, position, "#" + record.get('text'));
693 693 return true;
694 694 case 'amdaModel.DerivedParamNode' :
695   - if (!record.get('isParameter'))
  695 + if (!record.get('isParameter'))
696 696 return false;
697 697 //targetNode, position, paramId, paramComponents, isVector, plotOnly
  698 + var isVector = record.get('iconCls') == 'icon-vector';
698 699 var components = null;
699 700 var dim1=record.get("dim_1");
700 701 var dim2=record.get("dim_2");
... ... @@ -707,7 +708,7 @@ Ext.define('amdaPlotComp.PlotTree', {
707 708 components = [];
708 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 712 return true;
712 713 case 'amdaModel.DerivedParamComponentNode':
713 714 if (!record.get('isParameter'))
... ...