mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 21:20:12 +00:00
Always show extension panel in settings dialog (#2002)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -116,12 +116,6 @@ const serverConfigPanelNode: SettingTreeNode = {
|
||||
children: []
|
||||
}
|
||||
|
||||
const extensionPanelNodeList = computed<SettingTreeNode[]>(() => {
|
||||
const settingStore = useSettingStore()
|
||||
const showExtensionPanel = settingStore.get('Comfy.Settings.ExtensionPanel')
|
||||
return showExtensionPanel ? [extensionPanelNode] : []
|
||||
})
|
||||
|
||||
/**
|
||||
* Server config panel is only available in Electron. We might want to support
|
||||
* it in the web version in the future.
|
||||
@@ -140,7 +134,7 @@ const categories = computed<SettingTreeNode[]>(() =>
|
||||
[
|
||||
...settingCategories.value,
|
||||
keybindingPanelNode,
|
||||
...extensionPanelNodeList.value,
|
||||
extensionPanelNode,
|
||||
...serverConfigPanelNodeList.value,
|
||||
aboutPanelNode
|
||||
].map((node) => ({
|
||||
|
||||
@@ -38,6 +38,9 @@
|
||||
>
|
||||
<template #body="slotProps">
|
||||
<ToggleSwitch
|
||||
:disabled="
|
||||
extensionStore.isExtensionAlwaysEnabled(slotProps.data.name)
|
||||
"
|
||||
v-model="editingEnabledExtensions[slotProps.data.name]"
|
||||
@change="updateExtensionStatus"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user