fix: status restart can't change status

This commit is contained in:
Thanaphon Frappet 2025-01-09 14:41:54 +07:00
parent e099e5a091
commit ecba1afa75
3 changed files with 23 additions and 4 deletions

View file

@ -121,6 +121,7 @@ defineProps<{
Pending: 'waitReceive',
Accept: 'receiveTask',
Submit: 'sentTask',
Restart: 'status.Restart',
}[status] ?? 'waitReceive'
}`,
)
@ -130,6 +131,7 @@ defineProps<{
Pending: '--info-bg',
Accept: '--info-bg',
Submit: '--positive-bg',
Restart: '--negative-bg',
}[status] ?? '--info-bg'
"
/>