mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 15:10:06 +00:00
Fix queue cancelled status (#487)
This commit is contained in:
@@ -137,13 +137,13 @@ export class TaskItemImpl {
|
||||
case 'Pending':
|
||||
return TaskItemDisplayStatus.Pending
|
||||
case 'History':
|
||||
if (this.interrupted) return TaskItemDisplayStatus.Cancelled
|
||||
|
||||
switch (this.status!.status_str) {
|
||||
case 'success':
|
||||
return TaskItemDisplayStatus.Completed
|
||||
case 'error':
|
||||
return this.interrupted
|
||||
? TaskItemDisplayStatus.Cancelled
|
||||
: TaskItemDisplayStatus.Failed
|
||||
return TaskItemDisplayStatus.Failed
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user