Commit 869a3e0d0b69d2d45f81f202425bc8325ff0b750
1 parent
7f7d4c70
Exists in
master
and in
110 other branches
bug appeared when amdaUI.ExplorerUI.ITEM_KIND_MISS was added for EPNTAP
Showing
1 changed file
with
14 additions
and
2 deletions
Show diff stats
js/app/models/RemoteSimuParamNode.js
... | ... | @@ -66,6 +66,10 @@ Ext.define('amdaModel.RemoteSimuParamNode', { |
66 | 66 | text : 'Close All' |
67 | 67 | }, |
68 | 68 | { |
69 | + fnId : 'miss-collapseAll', | |
70 | + text : 'Close All' | |
71 | + }, | |
72 | + { | |
69 | 73 | fnId : 'dire-collapseAll', |
70 | 74 | text : 'Close All' |
71 | 75 | }, |
... | ... | @@ -102,10 +106,17 @@ Ext.define('amdaModel.RemoteSimuParamNode', { |
102 | 106 | |
103 | 107 | getAllContextMenuItems: function() |
104 | 108 | { |
105 | - if (this.get('isAddable')) | |
109 | + if (this.get('isAddable')) { | |
110 | + if (this.getNodeKind() == amdaUI.ExplorerUI.ITEM_KIND_MISS ) | |
106 | 111 | return Ext.Array.push(this.allMenuItems(), |
107 | - { fnId : 'dire-addData', | |
112 | + { fnId : 'miss-addData', | |
108 | 113 | text : 'Add Run'}); |
114 | + | |
115 | + else if (this.getNodeKind() == amdaUI.ExplorerUI.ITEM_KIND_DIRE ) | |
116 | + return Ext.Array.push(this.allMenuItems(), | |
117 | + { fnId : 'dire-addData', | |
118 | + text : 'Add Run'}); | |
119 | + } | |
109 | 120 | else if (this.get('isDeletable')) |
110 | 121 | return Ext.Array.push(this.allMenuItems(), |
111 | 122 | { fnId : 'dire-deleteNode', |
... | ... | @@ -136,6 +147,7 @@ Ext.define('amdaModel.RemoteSimuParamNode', { |
136 | 147 | this.deleteData(); |
137 | 148 | break; |
138 | 149 | case 'dire-addData': |
150 | + case 'miss-addData': | |
139 | 151 | case 'root-addData': |
140 | 152 | this.addData(); |
141 | 153 | break; |
... | ... |