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) => {
|
||||
if (isRoutineExpired(routine) || routine.pending_status === 'approved') return
|
||||
dialogRoutine.value = routine
|
||||
setTimeout(() => {
|
||||
showRoutineOverlay.value = true
|
||||
@@ -733,6 +734,7 @@ onUnmounted(() => {
|
||||
<span v-if="item.pending_status === 'pending'" class="chore-stamp pending-stamp"
|
||||
>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"
|
||||
>APPROVED</span
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user