Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: #429 closes #474
  • Loading branch information
enriquezrene committed Jul 22, 2020
commit 16dd5a218c1649e7576ccf310e1800df45298a55
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<table class="table table-sm table-striped" datatable [dtTrigger]="dtTrigger" [dtOptions]="dtOptions">
<thead class="thead-blue">
<tr class="d-flex">
<th class="col md-col">ID</th>
<th class="col md-col">User email</th>
<th class="col sm-col">Date</th>
<th class="col sm-col">Duration</th>
<th class="col sm-col">Duration (hours)</th>
<th class="col md-col">Project</th>
<th class="col lg-col">Project ID</th>
<th class="col md-col">Customer</th>
Expand All @@ -21,6 +22,7 @@
class="d-flex"
*ngFor="let entry of data"
>
<td class="col md-col multiline-col"> {{ entry.id }} </td>
<td class="col md-col multiline-col"> {{ entry.owner_email }} </td>
<td class="col sm-col"> {{ entry.start_date | date: 'MM/dd/yyyy' }} </td>
<td class="col sm-col"> {{ entry.end_date | substractDate: entry.start_date }} </td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
exportOptions: {
format: {
body: ( data, row, column, node ) => {
return column === 2 ?
return column === 3 ?
moment.duration(data).asHours().toFixed(4).slice(0, -1) :
data;
}
Expand All @@ -40,7 +40,7 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
exportOptions: {
format: {
body: ( data, row, column, node ) => {
return column === 2 ?
return column === 3 ?
moment.duration(data).asHours().toFixed(4).slice(0, -1) :
data;
}
Expand Down