Skip to content

Commit

Permalink
Merge pull request #90 from ConductionNL/feature/PC108-95/taak-deadli…
Browse files Browse the repository at this point in the history
…ne-in-list

show days until end of task
  • Loading branch information
RalkeyOfficial authored Dec 12, 2024
2 parents a8e4929 + 209b90b commit 5901d55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modals/taken/EditTaak.vue
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ export default {
medewerker: medewerkerId || null,
status: this.taakItem.status === 'gesloten' ? 'gesloten' : 'open',
deadline: this.taakItem.deadline ? this.taakItem.deadline.toISOString() : null,
}, { doNotRefresh: true })
})
.then(({ response }) => {
this.success = response.ok
setTimeout(this.closeModal, 2000)
Expand Down
2 changes: 1 addition & 1 deletion src/views/taken/TakenList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { navigationStore, taakStore } from '../../store/store.js'
:force-display-actions="true"
:active="taakStore.taakItem?.id === taak?.id"
:details="taak.status"
:counter-number="taak.deadline ? new Date(taak.deadline).toLocaleDateString() : 'no deadline'"
:counter-number="taak.deadline ? `${Math.ceil((new Date(taak.deadline) - new Date()) / (1000 * 60 * 60 * 24))} dagen` : 'no deadline'"
@click="taakStore.setTaakItem(taak)">
<template #icon>
<CalendarMonthOutline :class="taakStore.taakItem?.id === taak.id && 'selectedZaakIcon'"
Expand Down

0 comments on commit 5901d55

Please sign in to comment.