From 218521cf07b36ec406e78d541e9a6642456ec04b Mon Sep 17 00:00:00 2001 From: Elena.Budnik <ebudnik@irap.omp.eu> Date: Thu, 8 Nov 2018 18:42:45 +0100 Subject: [PATCH] remote herite from local --- js/app/models/RemoteSimuParamNode.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/js/app/models/RemoteSimuParamNode.js b/js/app/models/RemoteSimuParamNode.js index dd7e551..78d835c 100644 --- a/js/app/models/RemoteSimuParamNode.js +++ b/js/app/models/RemoteSimuParamNode.js @@ -22,8 +22,7 @@ Ext.define('amdaModel.RemoteSimuParamNode', { {name: 'isRemoteDataSet', type:'boolean', persist: false, defaultValue: true}, {name: 'isSimulation', type:'boolean', defaultValue: true}, {name: 'isAddable', type:'boolean', defaultValue: false}, - {name: 'isDeletable', type:'boolean', defaultValue: false}, - {name: 'rank', type: 'integer', persist: false, defaultValue: null} + {name: 'isDeletable', type:'boolean', defaultValue: false} ], constructor : function(config) @@ -42,18 +41,7 @@ Ext.define('amdaModel.RemoteSimuParamNode', { if (this.get('rank')) { var rank = this.get('rank'); - - if (rank == 1) this.set('iconCls', 'icon-mercury'); - if (rank == 2) this.set('iconCls', 'icon-venus'); - if (rank == 5) this.set('iconCls', 'icon-earth'); - if (rank == 6) this.set('iconCls', 'icon-earth'); - if (rank == 7) this.set('iconCls', 'icon-mars'); - if (rank == 8) this.set('iconCls', 'icon-jupiter'); - if (rank == 9) this.set('iconCls', 'icon-saturn'); - if (rank == 93) this.set('iconCls', 'icon-comet'); - if (rank == 3) this.set('iconCls', 'icon-sw'); - if (rank == 4) this.set('iconCls', 'icon-sw'); - if (rank >= 99) this.set('iconCls', 'icon-solarsystem'); + this.set('iconCls', this.icons[rank]); } }, -- libgit2 0.21.2