feat: use script setup for ShowTasksinRange.vue (#931)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: vikunja/frontend#931
Reviewed-by: konrad <k@knt.li>
Co-authored-by: dpschen <dpschen@noreply.kolaente.de>
Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
This commit is contained in:
dpschen 2021-11-02 18:18:54 +00:00 committed by konrad
parent d1ff800b41
commit 108e7af578
1 changed files with 4 additions and 13 deletions

View File

@ -7,23 +7,14 @@
</div>
</template>
<script>
<script setup>
import { ref } from 'vue'
import ShowTasks from './ShowTasks'
function getNextWeekDate() {
return new Date((new Date()).getTime() + 7 * 24 * 60 * 60 * 1000)
}
export default {
name: 'ShowTasksInRange',
components: {
ShowTasks,
},
data() {
return {
startDate: new Date(),
endDate: getNextWeekDate(),
}
},
}
const startDate = ref(new Date())
const endDate = ref(getNextWeekDate())
</script>