Fix scrubber times

This commit is contained in:
Toby Zerner 2015-02-08 15:58:37 +10:30
parent a19b40e51c
commit 199bbcf5d4

View File

@ -18,7 +18,10 @@ export default Ember.Component.extend({
start: Ember.computed.alias('item.indexStart'),
end: Ember.computed.alias('item.indexEnd'),
time: Ember.computed.alias('item.content.time'),
time: function() {
var time = this.get('item.content.time');
return time ? time.toString() : null;
}.property('item.content.time'),
number: Ember.computed.alias('item.content.number'),
loading: Ember.computed.alias('item.loading'),
direction: Ember.computed.alias('item.direction'),