mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-24 08:44:06 +00:00
fix: show stop state for active instant run button (#8917)
Switch the Run (Instant) actionbar button into a stop-state while instant auto-queue is actively running, so users can explicitly stop that mode from the same control. Figma context: https://www.figma.com/design/LVilZgHGk5RwWOkVN6yCEK/Queue-Progress-Modal?node-id=3381-6181&m=dev ## Screenshots (if applicable) https://github.com/user-attachments/assets/a4aca6ab-eb0c-41a2-9f05-3af7ecf2bedd
This commit is contained in:
@@ -627,7 +627,20 @@ export const useQueuePendingTaskCountStore = defineStore(
|
||||
}
|
||||
)
|
||||
|
||||
export type AutoQueueMode = 'disabled' | 'instant' | 'change'
|
||||
export type AutoQueueMode =
|
||||
| 'disabled'
|
||||
| 'change'
|
||||
| 'instant-idle'
|
||||
| 'instant-running'
|
||||
|
||||
export const isInstantMode = (
|
||||
mode: AutoQueueMode
|
||||
): mode is 'instant-idle' | 'instant-running' =>
|
||||
mode === 'instant-idle' || mode === 'instant-running'
|
||||
|
||||
export const isInstantRunningMode = (
|
||||
mode: AutoQueueMode
|
||||
): mode is 'instant-running' => mode === 'instant-running'
|
||||
|
||||
export const useQueueSettingsStore = defineStore('queueSettingsStore', {
|
||||
state: () => ({
|
||||
|
||||
Reference in New Issue
Block a user