Skip to content

Commit

Permalink
pkp/pkp-lib#10598 Calculate days from last activity in submission lis…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
jardakotesovec committed Dec 5, 2024
1 parent 337d7ba commit f0c5b26
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
<template>
<TableCell>(todo)</TableCell>
<TableCell>{{ days }}</TableCell>
</template>
<script setup>
import {defineProps} from 'vue';
import {computed} from 'vue';
import {useDate} from '@/composables/useDate';
import TableCell from '@/components/Table/TableCell.vue';
defineProps({
const props = defineProps({
item: {type: Object, required: true},
});
const {calculateDaysBetweenDates} = useDate();
const days = computed(() => {
return calculateDaysBetweenDates(props.item.dateLastActivity, new Date());
});
</script>

0 comments on commit f0c5b26

Please sign in to comment.