diff --git a/js/app/models/AmdaNode.js b/js/app/models/AmdaNode.js index a3c5236..4fba647 100644 --- a/js/app/models/AmdaNode.js +++ b/js/app/models/AmdaNode.js @@ -85,7 +85,6 @@ Ext.define('amdaModel.AmdaNode', { */ getFilteredContextMenu : function(itemKind) { var menuitems = this.getAllContextMenuItems(); - var realmenuitems = 0; if (menuitems && menuitems.length){ for ( var i = 0; i < menuitems.length; i++) { @@ -128,10 +127,10 @@ Ext.define('amdaModel.AmdaNode', { itemKind = amdaUI.ExplorerUI.ITEM_KIND_ROOT; } // if this node is a leaf and have no child - else if (this.isLeaf()) { + else if (this.isLeaf() || this.get('nodeType' ) == 'derivedParam' ) { itemKind = amdaUI.ExplorerUI.ITEM_KIND_LEAF; } - else if (this.get('isParameter')) { + else if (this.get('isParameter') && this.get('nodeType' ) != 'derivedParam' ) { itemKind = amdaUI.ExplorerUI.ITEM_KIND_PARA; } else if (this.get('rank')) { diff --git a/js/app/views/DownloadUI.js b/js/app/views/DownloadUI.js index 75ac135..8b9bec4 100644 --- a/js/app/views/DownloadUI.js +++ b/js/app/views/DownloadUI.js @@ -494,7 +494,6 @@ Ext.define('amdaUI.DownloadUI', { } else { idToSent = "ws_" + data.records[0].get('text'); - console.log(data.records[0]); } break; case 'myDataParam' : -- libgit2 0.21.2