Commit 370af70e7ca74cd7e5831102c25a77c424848e6f
1 parent
edd44876
Exists in
master
and in
106 other branches
ParamArgs plugin for parameterCreation if needsArgs
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
js/app/views/ParameterUI.js
@@ -49,8 +49,9 @@ Ext.define('amdaUI.ParameterUI', | @@ -49,8 +49,9 @@ Ext.define('amdaUI.ParameterUI', | ||
49 | addParam : function(newParamName, isLeaf, needArgs, components) | 49 | addParam : function(newParamName, isLeaf, needArgs, components) |
50 | { | 50 | { |
51 | //if (!isLeaf || needArgs || components) | 51 | //if (!isLeaf || needArgs || components) |
52 | - // this.editParameterArgs(newParamName, components); | ||
53 | - //else | 52 | + if ( needArgs ) |
53 | + this.editParameterArgs(newParamName, components); | ||
54 | + else | ||
54 | this.addParamInEditor(newParamName); | 55 | this.addParamInEditor(newParamName); |
55 | }, | 56 | }, |
56 | 57 |