feat: add confirmation state

This commit is contained in:
fiftin-quiz 2024-01-30 17:47:03 +05:00
parent b361695f68
commit 3c5aaac576
2 changed files with 11 additions and 7 deletions

View File

@ -10,6 +10,8 @@ type TaskStatus string
const (
TaskWaitingStatus TaskStatus = "waiting"
TaskStartingStatus TaskStatus = "starting"
TaskWaitingConfirmation TaskStatus = "waiting_confirmation"
TaskConfirmed TaskStatus = "confirmed"
TaskRunningStatus TaskStatus = "running"
TaskStoppingStatus TaskStatus = "stopping"
TaskStoppedStatus TaskStatus = "stopped"

View File

@ -11,6 +11,8 @@ import IndeterminateProgressCircular from '@/components/IndeterminateProgressCir
const TaskStatus = Object.freeze({
WAITING: 'waiting',
STARTING: 'starting',
WAITING_CONFIRMATION: 'waiting_confirmation',
CONFIRMED: 'confirmed',
RUNNING: 'running',
SUCCESS: 'success',
ERROR: 'error',