feat: use script setup for ShowTasksinRange.vue (#931)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/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:
parent
d1ff800b41
commit
108e7af578
1 changed files with 4 additions and 13 deletions
|
@ -7,23 +7,14 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
|
import { ref } from 'vue'
|
||||||
import ShowTasks from './ShowTasks'
|
import ShowTasks from './ShowTasks'
|
||||||
|
|
||||||
function getNextWeekDate() {
|
function getNextWeekDate() {
|
||||||
return new Date((new Date()).getTime() + 7 * 24 * 60 * 60 * 1000)
|
return new Date((new Date()).getTime() + 7 * 24 * 60 * 60 * 1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
const startDate = ref(new Date())
|
||||||
name: 'ShowTasksInRange',
|
const endDate = ref(getNextWeekDate())
|
||||||
components: {
|
|
||||||
ShowTasks,
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
startDate: new Date(),
|
|
||||||
endDate: getNextWeekDate(),
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
Loading…
Reference in a new issue