Commit 218521cf07b36ec406e78d541e9a6642456ec04b
1 parent
9b50abc6
Exists in
master
and in
109 other branches
remote herite from local
Showing
1 changed file
with
2 additions
and
14 deletions
Show diff stats
js/app/models/RemoteSimuParamNode.js
... | ... | @@ -22,8 +22,7 @@ Ext.define('amdaModel.RemoteSimuParamNode', { |
22 | 22 | {name: 'isRemoteDataSet', type:'boolean', persist: false, defaultValue: true}, |
23 | 23 | {name: 'isSimulation', type:'boolean', defaultValue: true}, |
24 | 24 | {name: 'isAddable', type:'boolean', defaultValue: false}, |
25 | - {name: 'isDeletable', type:'boolean', defaultValue: false}, | |
26 | - {name: 'rank', type: 'integer', persist: false, defaultValue: null} | |
25 | + {name: 'isDeletable', type:'boolean', defaultValue: false} | |
27 | 26 | ], |
28 | 27 | |
29 | 28 | constructor : function(config) |
... | ... | @@ -42,18 +41,7 @@ Ext.define('amdaModel.RemoteSimuParamNode', { |
42 | 41 | |
43 | 42 | if (this.get('rank')) { |
44 | 43 | var rank = this.get('rank'); |
45 | - | |
46 | - if (rank == 1) this.set('iconCls', 'icon-mercury'); | |
47 | - if (rank == 2) this.set('iconCls', 'icon-venus'); | |
48 | - if (rank == 5) this.set('iconCls', 'icon-earth'); | |
49 | - if (rank == 6) this.set('iconCls', 'icon-earth'); | |
50 | - if (rank == 7) this.set('iconCls', 'icon-mars'); | |
51 | - if (rank == 8) this.set('iconCls', 'icon-jupiter'); | |
52 | - if (rank == 9) this.set('iconCls', 'icon-saturn'); | |
53 | - if (rank == 93) this.set('iconCls', 'icon-comet'); | |
54 | - if (rank == 3) this.set('iconCls', 'icon-sw'); | |
55 | - if (rank == 4) this.set('iconCls', 'icon-sw'); | |
56 | - if (rank >= 99) this.set('iconCls', 'icon-solarsystem'); | |
44 | + this.set('iconCls', this.icons[rank]); | |
57 | 45 | } |
58 | 46 | }, |
59 | 47 | |
... | ... |