mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on time tracker
This commit is contained in:
parent
5c0aa6b813
commit
3c0415f8bd
@ -137,7 +137,7 @@
|
||||
<div data-bind="text: age" style="padding-top: 2px"></div>
|
||||
</div>
|
||||
<h4 class="list-group-item-heading">
|
||||
<span data-bind="text: description"></span>
|
||||
<span data-bind="text: description.truncated"></span>
|
||||
</h4>
|
||||
<p class="list-group-item-text">
|
||||
<span class="link" data-bind="text: clientName, click: $parent.viewClient, clickBubble: false"></span>
|
||||
@ -243,7 +243,7 @@
|
||||
|
||||
self.placeholder = ko.computed(function() {
|
||||
if (self.selectedTask() && self.selectedTask().description) {
|
||||
return self.selectedTask().description();
|
||||
return self.selectedTask().description.truncated();
|
||||
} else {
|
||||
return "{{ trans('texts.what_are_you_working_on') }}";
|
||||
}
|
||||
@ -384,6 +384,10 @@
|
||||
return self.isRunning() ? 'glyphicon glyphicon-stop' : 'glyphicon glyphicon-play';
|
||||
});
|
||||
|
||||
self.description.truncated = ko.computed(function() {
|
||||
return truncate(self.description(), 80);
|
||||
});
|
||||
|
||||
self.age = ko.computed(function() {
|
||||
if (! self.time_log().length) {
|
||||
return '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user