Working on time tracker

This commit is contained in:
Hillel Coren 2017-09-24 22:09:28 +03:00
parent 32ae5d55ad
commit bd96938e4c

View File

@ -521,6 +521,7 @@
} }
self.age = ko.computed(function() { self.age = ko.computed(function() {
model.clock(); // bind to the clock
if (! self.time_log().length) { if (! self.time_log().length) {
return ''; return '';
} }
@ -640,6 +641,7 @@
}); });
self.age = ko.computed(function() { self.age = ko.computed(function() {
model.clock(); // bind to the clock
return moment.unix(self.startTime()).fromNow(); return moment.unix(self.startTime()).fromNow();
}); });