mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-19 22:34:15 +00:00
Update viewjobhistorycommand (#7911)
## Summary Add the key binding to the schema and mark the setting as hidden. https://github.com/Comfy-Org/ComfyUI_frontend/pull/7805#pullrequestreview-3627969654 ## Changes **What**: - Added a new `shortcuts` field to the user settings database model. - Marked the `shortcuts` field as `hidden` in the `API/Schema` to ensure it remains internal for now, as suggested by the reviewer @benceruleanlu . - Migrated shortcut storage logic from frontend-only (store) to persistent backend storage. - **Breaking**: None - **Dependencies**: None ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7911-Update-viewjobhistorycommand-2e26d73d3650813297c3f9f7deb53b14) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -4,6 +4,7 @@ import { computed, ref, shallowRef, toRaw, toValue } from 'vue'
|
||||
|
||||
import { isCloud } from '@/platform/distribution/types'
|
||||
import { reconcileHistory } from '@/platform/remote/comfyui/history/reconciliation'
|
||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||
import { getWorkflowFromHistory } from '@/platform/workflow/cloud'
|
||||
import type {
|
||||
ComfyWorkflowJSON,
|
||||
@@ -620,7 +621,12 @@ export const useQueueSettingsStore = defineStore('queueSettingsStore', {
|
||||
})
|
||||
|
||||
export const useQueueUIStore = defineStore('queueUIStore', () => {
|
||||
const isOverlayExpanded = ref(false)
|
||||
const settingStore = useSettingStore()
|
||||
|
||||
const isOverlayExpanded = computed({
|
||||
get: () => settingStore.get('Comfy.Queue.History.Expanded'),
|
||||
set: (value) => settingStore.set('Comfy.Queue.History.Expanded', value)
|
||||
})
|
||||
|
||||
function toggleOverlay() {
|
||||
isOverlayExpanded.value = !isOverlayExpanded.value
|
||||
|
||||
Reference in New Issue
Block a user