Properly notify build to update times

This commit is contained in:
Piotr Sarnacki 2015-11-30 13:50:55 +01:00
parent a56e4a39c3
commit e8f2e5ae97

View File

@ -106,7 +106,8 @@ Repo = Model.extend
).property('slug')
updateTimes: ->
@notifyPropertyChange 'defaultBranch.lastBuild.duration'
if lastBuild = @get('defaultBranch.lastBuild')
lastBuild.updateTimes()
regenerateKey: (options) ->
@get('ajax').ajax '/repos/' + @get('id') + '/key', 'post', options