mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 11:04:41 -04:00
Working on time tracker
This commit is contained in:
parent
32ae5d55ad
commit
bd96938e4c
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user