mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Move refresh button from actionbar to 'Edit' menu (#1451)
This commit is contained in:
@@ -8,16 +8,6 @@
|
|||||||
<span class="drag-handle cursor-move mr-2 p-0!" ref="dragHandleRef">
|
<span class="drag-handle cursor-move mr-2 p-0!" ref="dragHandleRef">
|
||||||
</span>
|
</span>
|
||||||
<ComfyQueueButton />
|
<ComfyQueueButton />
|
||||||
<Divider layout="vertical" class="mx-1" />
|
|
||||||
<ButtonGroup class="flex flex-nowrap">
|
|
||||||
<Button
|
|
||||||
v-tooltip.bottom="$t('menu.refresh')"
|
|
||||||
icon="pi pi-refresh"
|
|
||||||
severity="secondary"
|
|
||||||
text
|
|
||||||
@click="() => commandStore.execute('Comfy.RefreshNodeDefinitions')"
|
|
||||||
/>
|
|
||||||
</ButtonGroup>
|
|
||||||
</div>
|
</div>
|
||||||
</Panel>
|
</Panel>
|
||||||
</template>
|
</template>
|
||||||
@@ -25,12 +15,8 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, inject, nextTick, onMounted, Ref, ref, watch } from 'vue'
|
import { computed, inject, nextTick, onMounted, Ref, ref, watch } from 'vue'
|
||||||
import Panel from 'primevue/panel'
|
import Panel from 'primevue/panel'
|
||||||
import Divider from 'primevue/divider'
|
|
||||||
import Button from 'primevue/button'
|
|
||||||
import ButtonGroup from 'primevue/buttongroup'
|
|
||||||
import ComfyQueueButton from './ComfyQueueButton.vue'
|
import ComfyQueueButton from './ComfyQueueButton.vue'
|
||||||
import { useSettingStore } from '@/stores/settingStore'
|
import { useSettingStore } from '@/stores/settingStore'
|
||||||
import { useCommandStore } from '@/stores/commandStore'
|
|
||||||
import {
|
import {
|
||||||
useDraggable,
|
useDraggable,
|
||||||
useElementBounding,
|
useElementBounding,
|
||||||
@@ -42,7 +28,6 @@ import {
|
|||||||
import { clamp } from 'lodash'
|
import { clamp } from 'lodash'
|
||||||
|
|
||||||
const settingsStore = useSettingStore()
|
const settingsStore = useSettingStore()
|
||||||
const commandStore = useCommandStore()
|
|
||||||
|
|
||||||
const visible = computed(
|
const visible = computed(
|
||||||
() => settingsStore.get('Comfy.UseNewMenu') !== 'Disabled'
|
() => settingsStore.get('Comfy.UseNewMenu') !== 'Disabled'
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ export const useMenuItemStore = defineStore('menuItem', () => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
registerCommands(['Edit'], ['Comfy.Undo', 'Comfy.Redo'])
|
registerCommands(['Edit'], ['Comfy.Undo', 'Comfy.Redo'])
|
||||||
|
registerCommands(['Edit'], ['Comfy.RefreshNodeDefinitions'])
|
||||||
registerCommands(['Edit'], ['Comfy.ClearWorkflow'])
|
registerCommands(['Edit'], ['Comfy.ClearWorkflow'])
|
||||||
registerCommands(['Edit'], ['Comfy.OpenClipspace'])
|
registerCommands(['Edit'], ['Comfy.OpenClipspace'])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user