Commit 5bd868db1e40b2fcf5f120b17ea0d04fa957328a

Authored by Nathanael Jourdane
1 parent b4f0a35e

Fill targetname with 67P for Rosetta mission

Showing 1 changed file with 8 additions and 1 deletions   Show diff stats
js/app/models/LocalParamNode.js
... ... @@ -259,6 +259,7 @@ Ext.define('amdaModel.LocalParamNode',
259 259 },
260 260  
261 261 displayEpnTap: function() {
  262 + var missions = {'Rosetta': '67P'};
262 263 var icons = {
263 264 'icon-mercury': 'Mercury',
264 265 'icon-venus': 'Venus',
... ... @@ -269,7 +270,13 @@ Ext.define('amdaModel.LocalParamNode',
269 270 'icon-comet': 'Comet',
270 271 }
271 272 var filter = {'productType': 'all'};
272   - filter['targetName'] = this.get('iconCls') in icons ? icons[this.get('iconCls')] : '';
  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 + }
273 280 filter['start'] = this.get('globalStart') ? this.get('globalStart') : '';
274 281 filter['stop'] = this.get('globalStop') ? this.get('globalStop') : '';
275 282 myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.interop.id, true, function (module) {
... ...