This repository has been archived on 2025-10-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rebuilding-uis/src/components/TaskLog/TaskLog.vue
2018-12-26 01:21:54 +00:00

37 lines
656 B
Vue

<template>
<div>
<div class="bg-grey-light pb-4 pt-6 px-4">
<h2 class="font-normal text-lg">Task Log</h2>
</div>
<div>
<ul class="list-reset bg-white">
<li v-for="task in reversedTasks" :key="task.text">
<task-log-item :task="task"></task-log-item>
</li>
</ul>
</div>
</div>
</template>
<script>
import _ from 'lodash'
import TaskLogItem from '@/components/TaskLogItem'
export default {
components: {
TaskLogItem,
},
props: {
tasks: Array,
},
computed: {
reversedTasks: function () {
let tasks = this.tasks
return _.reverse(tasks)
}
}
}
</script>