Commit b96f55a5140d2f7f22a48d84fb25a3d3880f6dd8
1 parent
81bfd64a
Exists in
master
and in
111 other branches
Fill more precisely tableName field when launching epntap from tree view
Showing
1 changed file
with
34 additions
and
25 deletions
Show diff stats
js/app/models/LocalParamNode.js
... | ... | @@ -258,29 +258,38 @@ Ext.define('amdaModel.LocalParamNode', |
258 | 258 | return this.get('isParameter'); |
259 | 259 | }, |
260 | 260 | |
261 | - displayEpnTap: function() { | |
262 | - var missions = {'Rosetta': '67P'}; | |
263 | - var icons = { | |
264 | - 'icon-mercury': 'Mercury', | |
265 | - 'icon-venus': 'Venus', | |
266 | - 'icon-earth': 'Earth', | |
267 | - 'icon-mars': 'Mars', | |
268 | - 'icon-jupiter': 'Jupiter', | |
269 | - 'icon-saturn': 'Saturn', | |
270 | - 'icon-comet': 'Comet', | |
271 | - } | |
272 | - var filter = {'productType': 'all'}; | |
273 | - if(this.get('id') in missions) { | |
274 | - filter['targetName'] = missions[this.get('id')]; | |
275 | - } else if(this.get('iconCls') in icons) { | |
276 | - filter['targetName'] = icons[this.get('iconCls')]; | |
277 | - } else { | |
278 | - filter['targetName'] = ''; | |
279 | - } | |
280 | - filter['start'] = this.get('globalStart') ? this.get('globalStart') : ''; | |
281 | - filter['stop'] = this.get('globalStop') ? this.get('globalStop') : ''; | |
282 | - myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.interop.id, true, function (module) { | |
283 | - module.createWindow({'activeTab': 2, 'epntapFilter': filter}); | |
284 | - }); | |
285 | - } | |
261 | + displayEpnTap: function () { | |
262 | + const missions = { | |
263 | + 'Giotto': '1P', | |
264 | + 'ICE': '21P', | |
265 | + 'Rosetta': '67P', | |
266 | + 'Voyager': 'Jupiter, Io, Thébé, Métis Adrastée, Europe, ' + | |
267 | + 'Saturn, Atlas, Prométhée, Pandore, Téthys, Japet, Encelade, Uranus, Mirandaneptune, Triton', | |
268 | + 'Pioneer': 'Earth, Moon, Venus, Jupiter, Callisto, Ganymede, Io, Europa, Amalthea, Saturn, Iapetus, Phoebe, ' + | |
269 | + 'Hyperion, Epimetheus, Atlas, Dione, Mimas, Janus, Tethys, Enceladus, Calypso, Rhea, Titan', | |
270 | + 'Ulysses': 'Sun', | |
271 | + 'Solar_Probe_Plus': 'Sun', | |
272 | + 'Solar_Orbiter': 'Sun', | |
273 | + 'Ephemerides': 'Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, Deimos, Phobos, 67P' | |
274 | + } | |
275 | + const icons = { | |
276 | + 'icon-mercury': 'Mercury', | |
277 | + 'icon-venus': 'Venus', | |
278 | + 'icon-earth': 'Earth', | |
279 | + 'icon-mars': 'Mars', | |
280 | + 'icon-jupiter': 'Jupiter', | |
281 | + 'icon-saturn': 'Saturn', | |
282 | + 'icon-sw': 'Earth, Sun' | |
283 | + } | |
284 | + | |
285 | + const targetName = this.get('id') in missions ? missions[this.get('id')] | |
286 | + : this.get('iconCls') in icons ? icons[this.get('iconCls')] | |
287 | + : '' | |
288 | + const start = this.get('globalStart') ? this.get('globalStart') : '' | |
289 | + const stop = this.get('globalStop') ? this.get('globalStop') : '' | |
290 | + const filter = {'productType': 'all', 'targetName': targetName, 'start': start, 'stop': stop} | |
291 | + myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.interop.id, true, function (module) { | |
292 | + module.createWindow({'activeTab': 2, 'epntapFilter': filter}) | |
293 | + }) | |
294 | + } | |
286 | 295 | }); |
... | ... |