mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 15:40:10 +00:00
* add a hotkey for settings for #942 * playwright test for settings menu hotkey * make hotkey intercompatible with both old and new UI
24 lines
635 B
Vue
24 lines
635 B
Vue
<template>
|
|
<SidebarIcon
|
|
icon="pi pi-cog"
|
|
class="comfy-settings-btn"
|
|
@click="showSetting"
|
|
:tooltip="$t('settings')"
|
|
/>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import SidebarIcon from './SidebarIcon.vue'
|
|
import { useDialogStore } from '@/stores/dialogStore'
|
|
import SettingDialogContent from '@/components/dialog/content/SettingDialogContent.vue'
|
|
import SettingDialogHeader from '@/components/dialog/header/SettingDialogHeader.vue'
|
|
|
|
const dialogStore = useDialogStore()
|
|
const showSetting = () => {
|
|
dialogStore.showDialog({
|
|
headerComponent: SettingDialogHeader,
|
|
component: SettingDialogContent
|
|
})
|
|
}
|
|
</script>
|