mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-13 09:00:16 +00:00
fix: add run progress toggle to job history menu (#9176)
Summary - Add hidden setting `Comfy.Queue.ShowRunProgressBar` (default `true`). - Add `Show run progress bar` toggle to the shared `...` job history menu (`JobHistoryActionsMenu`), placed next to `Docked Job History`. - Use that setting to control both the inline run progress bar and the inline summary text under it. - Keep queue button right-click context menu focused on queue actions. - Add/update tests for the new toggle behavior and summary visibility. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9176-fix-add-run-progress-toggle-to-job-history-menu-3116d73d365081118202d8d67a857367) by [Unito](https://www.unito.io)
This commit is contained in:
19
src/composables/queue/useQueueFeatureFlags.ts
Normal file
19
src/composables/queue/useQueueFeatureFlags.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { computed } from 'vue'
|
||||
|
||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||
|
||||
export function useQueueFeatureFlags() {
|
||||
const settingStore = useSettingStore()
|
||||
|
||||
const isQueuePanelV2Enabled = computed(() =>
|
||||
settingStore.get('Comfy.Queue.QPOV2')
|
||||
)
|
||||
const isRunProgressBarEnabled = computed(
|
||||
() => settingStore.get('Comfy.Queue.ShowRunProgressBar') !== false
|
||||
)
|
||||
|
||||
return {
|
||||
isQueuePanelV2Enabled,
|
||||
isRunProgressBarEnabled
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user