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

@ -8,13 +8,15 @@ import (
type TaskStatus string
const (
TaskWaitingStatus TaskStatus = "waiting"
TaskStartingStatus TaskStatus = "starting"
TaskRunningStatus TaskStatus = "running"
TaskStoppingStatus TaskStatus = "stopping"
TaskStoppedStatus TaskStatus = "stopped"
TaskSuccessStatus TaskStatus = "success"
TaskFailStatus TaskStatus = "error"
TaskWaitingStatus TaskStatus = "waiting"
TaskStartingStatus TaskStatus = "starting"
TaskWaitingConfirmation TaskStatus = "waiting_confirmation"
TaskConfirmed TaskStatus = "confirmed"
TaskRunningStatus TaskStatus = "running"
TaskStoppingStatus TaskStatus = "stopping"
TaskStoppedStatus TaskStatus = "stopped"
TaskSuccessStatus TaskStatus = "success"
TaskFailStatus TaskStatus = "error"
)
func (s TaskStatus) IsFinished() bool {

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',