mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Only show action timeline when 'action' is in the hudProperties.
This commit is contained in:
parent
9b8eb6a296
commit
6db8051122
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue