Don't refresh duration when record is loading

This commit is contained in:
Piotr Sarnacki 2013-05-15 14:19:07 +02:00
parent d65f733f28
commit dddf66b8cf

View File

@ -7,6 +7,6 @@ Travis.DurationCalculations = Ember.Mixin.create
).property('_duration', 'finishedAt', 'startedAt')
updateTimes: ->
if @get('stateManager.currentState.path') != 'rootState.loaded.reloading'
unless ['rootState.loaded.reloading', 'rootState.loading'].contains @get('stateManager.currentState.path')
@notifyPropertyChange '_duration'
@notifyPropertyChange 'finished_at'