Commit d2d8b461fabcda97adbe598686a6f27ac258d882

Authored by Nathanael Jourdane
1 parent 264edda7

Display epntap context menu item only for missions

js/app/models/AmdaNode.js
@@ -135,6 +135,9 @@ Ext.define('amdaModel.AmdaNode', { @@ -135,6 +135,9 @@ Ext.define('amdaModel.AmdaNode', {
135 else if (this.get('isParameter')) { 135 else if (this.get('isParameter')) {
136 itemKind = amdaUI.ExplorerUI.ITEM_KIND_PARA; 136 itemKind = amdaUI.ExplorerUI.ITEM_KIND_PARA;
137 } 137 }
  138 + else if (this.get('rank')) {
  139 + itemKind = amdaUI.ExplorerUI.ITEM_KIND_MISS;
  140 + }
138 // other case 141 // other case
139 else { 142 else {
140 itemKind = amdaUI.ExplorerUI.ITEM_KIND_DIRE; 143 itemKind = amdaUI.ExplorerUI.ITEM_KIND_DIRE;
js/app/models/LocalParamNode.js
@@ -95,6 +95,10 @@ Ext.define('amdaModel.LocalParamNode', @@ -95,6 +95,10 @@ Ext.define('amdaModel.LocalParamNode',
95 text : 'Close All', 95 text : 'Close All',
96 hidden : true 96 hidden : true
97 }, { 97 }, {
  98 + fnId : 'miss-collapseAll',
  99 + text : 'Close All',
  100 + hidden : true
  101 + }, {
98 fnId : 'para-plotParam', 102 fnId : 'para-plotParam',
99 text : 'Plot Parameter', 103 text : 'Plot Parameter',
100 hidden : true 104 hidden : true
@@ -119,9 +123,9 @@ Ext.define('amdaModel.LocalParamNode', @@ -119,9 +123,9 @@ Ext.define('amdaModel.LocalParamNode',
119 text : 'Download Parameter', 123 text : 'Download Parameter',
120 hidden : true 124 hidden : true
121 }, { 125 }, {
122 - fnId : 'dire-epnTap', 126 + fnId : 'miss-epnTap',
123 text : 'Display EPN-TAP services', 127 text : 'Display EPN-TAP services',
124 - hidden : false 128 + hidden : true
125 }]; 129 }];
126 130
127 return menuItems; 131 return menuItems;
@@ -134,6 +138,7 @@ Ext.define('amdaModel.LocalParamNode', @@ -134,6 +138,7 @@ Ext.define('amdaModel.LocalParamNode',
134 { 138 {
135 case 'root-collapseAll': 139 case 'root-collapseAll':
136 case 'dire-collapseAll': 140 case 'dire-collapseAll':
  141 + case 'miss-collapseAll':
137 if(this && !this.isLeaf()) { 142 if(this && !this.isLeaf()) {
138 this.collapse(true); 143 this.collapse(true);
139 } 144 }
@@ -158,7 +163,7 @@ Ext.define('amdaModel.LocalParamNode', @@ -158,7 +163,7 @@ Ext.define('amdaModel.LocalParamNode',
158 else 163 else
159 myDesktopApp.warningMsg("Sorry! access to this parameter is restricted"); 164 myDesktopApp.warningMsg("Sorry! access to this parameter is restricted");
160 break; 165 break;
161 - case 'dire-epnTap': 166 + case 'miss-epnTap':
162 this.displayEpnTap(); 167 this.displayEpnTap();
163 default: 168 default:
164 break; 169 break;
js/app/views/ExplorerUI.js
@@ -101,6 +101,7 @@ Ext.define('amdaUI.ExplorerUI', { @@ -101,6 +101,7 @@ Ext.define('amdaUI.ExplorerUI', {
101 ITEM_KIND_LEAF : 'leaf', 101 ITEM_KIND_LEAF : 'leaf',
102 ITEM_KIND_DIRE : 'dire', 102 ITEM_KIND_DIRE : 'dire',
103 ITEM_KIND_PARA : 'para', 103 ITEM_KIND_PARA : 'para',
  104 + ITEM_KIND_MISS : 'miss'
104 }, 105 },
105 106
106 initComponent : function (config) { 107 initComponent : function (config) {