From 4f1c058ab9f2ff49380ef385d03a2c42a1023444 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 6 Feb 2019 11:59:45 +0100 Subject: [PATCH] rm derived params ok --- js/app/models/AmdaNode.js | 5 ++--- js/app/views/DownloadUI.js | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) 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