Hide the play button on the inventory screen until the items have fully loaded.

This commit is contained in:
Nick Winter 2014-11-10 07:49:23 -08:00
parent a3d88eb975
commit 563c886bdd

View file

@ -80,7 +80,9 @@ module.exports = class InventoryModal extends ModalView
afterRender: ->
super()
@$el.find('.modal-footer button').css('visibility', 'hidden')
return unless @supermodel.finished()
@$el.find('.modal-footer button').css('visibility', 'visible')
keys = (item.get('original') for item in @items.models)
itemMap = _.zipObject keys, @items.models