Only show action timeline when 'action' is in the hudProperties.

This commit is contained in:
Nick Winter 2014-02-28 11:38:41 -08:00
parent 9b8eb6a296
commit 6db8051122

View file

@ -145,7 +145,9 @@ module.exports = class HUDView extends View
createActions: ->
actions = @$el.find('.thang-actions tbody').empty()
return unless @thang.world and not _.isEmpty @thang.actions
showActions = @thang.world and not _.isEmpty(@thang.actions) and 'action' in @thang.hudProperties ? []
@$el.find('.thang-actions').toggle showActions
return unless showActions
@buildActionTimespans()
for actionName, action of @thang.actions
actions.append @createActionElement(actionName)