Commit 4f1c058ab9f2ff49380ef385d03a2c42a1023444
1 parent
0cefcae2
Exists in
master
and in
106 other branches
rm derived params ok
Showing
2 changed files
with
2 additions
and
4 deletions
Show diff stats
js/app/models/AmdaNode.js
... | ... | @@ -85,7 +85,6 @@ Ext.define('amdaModel.AmdaNode', { |
85 | 85 | */ |
86 | 86 | getFilteredContextMenu : function(itemKind) { |
87 | 87 | var menuitems = this.getAllContextMenuItems(); |
88 | - | |
89 | 88 | var realmenuitems = 0; |
90 | 89 | if (menuitems && menuitems.length){ |
91 | 90 | for ( var i = 0; i < menuitems.length; i++) { |
... | ... | @@ -128,10 +127,10 @@ Ext.define('amdaModel.AmdaNode', { |
128 | 127 | itemKind = amdaUI.ExplorerUI.ITEM_KIND_ROOT; |
129 | 128 | } |
130 | 129 | // if this node is a leaf and have no child |
131 | - else if (this.isLeaf()) { | |
130 | + else if (this.isLeaf() || this.get('nodeType' ) == 'derivedParam' ) { | |
132 | 131 | itemKind = amdaUI.ExplorerUI.ITEM_KIND_LEAF; |
133 | 132 | } |
134 | - else if (this.get('isParameter')) { | |
133 | + else if (this.get('isParameter') && this.get('nodeType' ) != 'derivedParam' ) { | |
135 | 134 | itemKind = amdaUI.ExplorerUI.ITEM_KIND_PARA; |
136 | 135 | } |
137 | 136 | else if (this.get('rank')) { | ... | ... |
js/app/views/DownloadUI.js