This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/views/tasks/ShowTasksInRange.vue
dpschen 108e7af578
All checks were successful
continuous-integration/drone/push Build is passing
feat: use script setup for ShowTasksinRange.vue (#931)
Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: #931
Reviewed-by: konrad <k@knt.li>
Co-authored-by: dpschen <dpschen@noreply.kolaente.de>
Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
2021-11-02 18:18:54 +00:00

20 lines
400 B
Vue

<template>
<div class="content has-text-centered">
<ShowTasks
:end-date="endDate"
:start-date="startDate"
/>
</div>
</template>
<script setup>
import { ref } from 'vue'
import ShowTasks from './ShowTasks'
function getNextWeekDate() {
return new Date((new Date()).getTime() + 7 * 24 * 60 * 60 * 1000)
}
const startDate = ref(new Date())
const endDate = ref(getNextWeekDate())
</script>