mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Fixed system order in the level view.
This commit is contained in:
parent
9da955d1a2
commit
26e9dc3b09
1 changed files with 6 additions and 1 deletions
|
@ -57,7 +57,12 @@ module.exports = class SystemsTabView extends View
|
|||
unless systems.length
|
||||
systems = @buildDefaultSystems()
|
||||
insertedDefaults = true
|
||||
systems = _.sortBy systems, "name"
|
||||
|
||||
systemModels = @supermodel.getModels LevelSystem
|
||||
systemModelMap = {}
|
||||
systemModelMap[sys.get('original')] = sys.get('name') for sys in systemModels
|
||||
systems = _.sortBy systems, (sys) -> systemModelMap[sys.original]
|
||||
|
||||
treemaOptions =
|
||||
# TODO: somehow get rid of the + button, or repurpose it to open the LevelSystemAddView instead
|
||||
supermodel: @supermodel
|
||||
|
|
Loading…
Add table
Reference in a new issue