mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
feat: add confirmation state
This commit is contained in:
parent
b361695f68
commit
3c5aaac576
@ -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 {
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user