2018-12-25 23:41:55 +01:00
|
|
|
<template>
|
|
|
|
<div class="content has-text-centered">
|
2020-05-12 15:08:17 +02:00
|
|
|
<ShowTasks
|
2018-12-25 23:41:55 +01:00
|
|
|
:end-date="endDate"
|
2020-09-05 22:35:52 +02:00
|
|
|
:start-date="startDate"
|
2018-12-25 23:41:55 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-09-05 22:35:52 +02:00
|
|
|
import ShowTasks from './ShowTasks'
|
2020-05-12 15:08:17 +02:00
|
|
|
|
2021-09-08 11:59:38 +02:00
|
|
|
function getNextWeekDate() {
|
|
|
|
return new Date((new Date()).getTime() + 7 * 24 * 60 * 60 * 1000)
|
|
|
|
}
|
|
|
|
|
2020-09-05 22:35:52 +02:00
|
|
|
export default {
|
|
|
|
name: 'ShowTasksInRange',
|
|
|
|
components: {
|
|
|
|
ShowTasks,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
2021-09-08 11:59:38 +02:00
|
|
|
startDate: new Date(),
|
|
|
|
endDate: getNextWeekDate(),
|
2020-09-05 22:35:52 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
2018-12-25 23:41:55 +01:00
|
|
|
</script>
|