Specify _finishedAt and _startedAt as dependencies for duration
Because of our partial loading implementation we need to specify finishedAt and startedAt differently than we would normally do. For some reason duration was not recalculated while loading record and specifying raw attributes helps here.
This commit is contained in:
parent
4fc599f767
commit
61f820cada
|
@ -6,7 +6,7 @@ Travis.DurationCalculations = Ember.Mixin.create
|
|||
duration
|
||||
else
|
||||
Travis.Helpers.durationFrom(@get('startedAt'), @get('finishedAt'))
|
||||
).property('_duration', 'finishedAt', 'startedAt', 'notStarted')
|
||||
).property('_duration', 'finishedAt', 'startedAt', 'notStarted', '_finishedAt', '_startedAt')
|
||||
|
||||
updateTimes: ->
|
||||
unless @get('isFinished')
|
||||
|
|
Loading…
Reference in New Issue
Block a user