Skip to content

Commit

Permalink
humanize start and end time also
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolarosa committed Jun 1, 2020
1 parent 52fbe78 commit 423b013
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/components/RenderDataTable.component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
align="center"
>
<template slot-scope="scope">{{
humanizeDuration(scope.row.statistics.duration)
humanize(scope.row.statistics.duration)
}}</template>
</el-table-column>
<el-table-column
Expand Down Expand Up @@ -85,13 +85,21 @@
label="Start Time"
width="120"
align="center"
></el-table-column>
>
<template slot-scope="scope">{{
humanize(scope.row.statistics.startTime)
}}</template>
</el-table-column>
<el-table-column
prop="statistics.endTime"
label="End Time"
width="120"
align="center"
></el-table-column>
>
<template slot-scope="scope">{{
humanize(scope.row.statistics.endTime)
}}</template>
</el-table-column>
<el-table-column
prop="statistics.referenceAnnotations"
label="# Reference Annotations"
Expand Down Expand Up @@ -161,8 +169,8 @@ export default {
order: order === "descending" ? "desc" : "asc",
};
},
humanizeDuration(duration) {
return prettyMilliseconds(duration);
humanize(time) {
return prettyMilliseconds(time);
},
},
};
Expand Down

0 comments on commit 423b013

Please sign in to comment.