feat: add routine expiration check and update status display in ChildView
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m59s
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m59s
This commit is contained in:
@@ -243,6 +243,7 @@ const triggerTask = async (task: ChildTask) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleRoutineClick = (routine: ChildRoutine) => {
|
const handleRoutineClick = (routine: ChildRoutine) => {
|
||||||
|
if (isRoutineExpired(routine) || routine.pending_status === 'approved') return
|
||||||
dialogRoutine.value = routine
|
dialogRoutine.value = routine
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
showRoutineOverlay.value = true
|
showRoutineOverlay.value = true
|
||||||
@@ -733,6 +734,7 @@ onUnmounted(() => {
|
|||||||
<span v-if="item.pending_status === 'pending'" class="chore-stamp pending-stamp"
|
<span v-if="item.pending_status === 'pending'" class="chore-stamp pending-stamp"
|
||||||
>PENDING</span
|
>PENDING</span
|
||||||
>
|
>
|
||||||
|
<span v-else-if="isRoutineExpired(item)" class="chore-stamp">TOO LATE</span>
|
||||||
<span v-else-if="item.pending_status === 'approved'" class="chore-stamp completed-stamp"
|
<span v-else-if="item.pending_status === 'approved'" class="chore-stamp completed-stamp"
|
||||||
>APPROVED</span
|
>APPROVED</span
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user