Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify docked by using model macro
  • Loading branch information
benceruleanlu committed Dec 14, 2025
commit 66f4dac7cad1f9a34298c037887069eaffb534f3
7 changes: 1 addition & 6 deletions src/components/actionbar/ComfyActionbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,10 @@ import ComfyRunButton from './ComfyRunButton'
const props = defineProps<{
queueOverlayExpanded: boolean
topMenuContainer?: HTMLElement | null
docked?: boolean
}>()

const emit = defineEmits<{
(e: 'update:queueOverlayExpanded', value: boolean): void
(e: 'update:docked', value: boolean): void
}>()

const settingsStore = useSettingStore()
Expand All @@ -152,10 +150,7 @@ const tabContainer = document.querySelector('.workflow-tabs-container')
const actionbarWrapperRef = ref<HTMLElement | null>(null)
const panelRef = ref<HTMLElement | null>(null)
const dragHandleRef = ref<HTMLElement | null>(null)
const docked = computed({
get: () => props.docked ?? false,
set: (value) => emit('update:docked', value)
})
const docked = defineModel<boolean>('docked', { default: false })
const storedPosition = useLocalStorage('Comfy.MenuPosition.Floating', {
x: 0,
y: 0
Expand Down