Commit f21cd402574447a79e93639afbc6d4ab2fc3b7b6
1 parent
098d15a9
Exists in
master
and in
107 other branches
Fix components selection in download UI (#6520)
Showing
2 changed files
with
13 additions
and
13 deletions
Show diff stats
js/app/models/InteractiveNode.js
... | ... | @@ -487,16 +487,16 @@ Ext.define('amdaModel.InteractiveNode', { |
487 | 487 | else |
488 | 488 | paramName = node.get('id'); |
489 | 489 | } |
490 | -// var component_info = node.get('component_info'); | |
491 | -// if (component_info && component_info.parentId) { | |
492 | -// //It's a component | |
493 | -// paramName = component_info.parentId; | |
494 | -// components = []; | |
495 | -// if (component_info.index1) | |
496 | -// components['index1'] = component_info.index1; | |
497 | -// if (component_info.index2) | |
498 | -// components['index2'] = component_info.index2; | |
499 | -// } | |
490 | + var component_info = node.get('component_info'); | |
491 | + if (component_info && component_info.parentId) { | |
492 | + //It's a component | |
493 | + paramName = component_info.parentId; | |
494 | + components = []; | |
495 | + if (component_info.index1) | |
496 | + components['index1'] = component_info.index1; | |
497 | + if (component_info.index2) | |
498 | + components['index2'] = component_info.index2; | |
499 | + } | |
500 | 500 | module.addParam(paramName,true,node.get('needsArgs'),components); |
501 | 501 | }); |
502 | 502 | }, | ... | ... |
js/app/views/DownloadUI.js
... | ... | @@ -121,8 +121,8 @@ Ext.define('amdaUI.DownloadUI', { |
121 | 121 | var pos = this.paramGrid.store.getCount(); |
122 | 122 | this.paramGrid.store.insert(pos,r); |
123 | 123 | this.paramGrid.getView().refresh(); |
124 | - if (!isLeaf || needArgs) | |
125 | - this.editParameterArgs(r); | |
124 | + //if (!isLeaf || needArgs) | |
125 | + // this.editParameterArgs(r); | |
126 | 126 | }, |
127 | 127 | |
128 | 128 | addParams: function(arrayParams) |
... | ... | @@ -455,7 +455,7 @@ Ext.define('amdaUI.DownloadUI', { |
455 | 455 | var component_info = data.records[0].get('component_info'); |
456 | 456 | if (component_info && component_info.parentId) |
457 | 457 | { |
458 | - if ( component_info.index1 && component_info.index2 ) | |
458 | + if ( component_info.index1 || component_info.index2 ) | |
459 | 459 | { |
460 | 460 | idToSent = component_info.parentId; |
461 | 461 | components = []; | ... | ... |