sampler scheduler ui dropdown list propagation fix v0.3

This commit is contained in:
JasonHoku
2026-02-15 14:02:08 -08:00
parent d97af5e441
commit 3393a5b60c
2 changed files with 8 additions and 8 deletions
@@ -13,9 +13,7 @@ import {
countPromptCombinations,
expandPromptPreview,
getAvailableVAEs,
getVAEFolders,
getAvailableSamplers,
getAvailableSchedulers
getVAEFolders
} from './conf-builder-utilities.js';
import {
@@ -274,7 +272,7 @@ function createChipListBuilder({ label, stateKey, options, node, arrayIdx, confi
// --- CONFIG ARRAY ELEMENT CREATOR ---
export function createConfigArrayElement(node, configArray, arrayIdx) {
export function createConfigArrayElement(node, configArray, arrayIdx, modelLists) {
const div = document.createElement("div");
div.className = "cb-array";
@@ -294,14 +292,14 @@ export function createConfigArrayElement(node, configArray, arrayIdx) {
// Samplers - dropdown + chips list builder
const samplersBuilder = createChipListBuilder({
label: "Samplers", stateKey: "samplers", options: getAvailableSamplers,
label: "Samplers", stateKey: "samplers", options: (modelLists && modelLists.samplers) || [],
node, arrayIdx, configArray, accentColor: "#0088ff", placeholder: "No samplers selected"
});
settingsGrid.appendChild(createInputGroup("Samplers", samplersBuilder));
// Schedulers - dropdown + chips list builder
const schedulersBuilder = createChipListBuilder({
label: "Schedulers", stateKey: "schedulers", options: getAvailableSchedulers,
label: "Schedulers", stateKey: "schedulers", options: (modelLists && modelLists.schedulers) || [],
node, arrayIdx, configArray, accentColor: "#00aa66", placeholder: "No schedulers selected"
});
settingsGrid.appendChild(createInputGroup("Schedulers", schedulersBuilder));
@@ -2491,7 +2489,7 @@ export async function renderUI(node, availableLoras, modelLists, loraFolders, av
arraysContainer.className = "cb-arrays-container";
node.state.config_arrays.forEach((configArray, arrayIdx) => {
const arrayElement = createConfigArrayElement(node, configArray, arrayIdx);
const arrayElement = createConfigArrayElement(node, configArray, arrayIdx, modelLists);
renderConfigPromptsSection(node, arrayElement, configArray, arrayIdx);
renderModelsSection(node, arrayElement, configArray, arrayIdx, modelLists);
renderVAEsSection(node, arrayElement, configArray, arrayIdx, modelLists);
+3 -1
View File
@@ -196,7 +196,9 @@ app.registerExtension({
clipTypes: utilities.getClipTypes(),
dualClipTypes: utilities.getDualClipTypes(),
vaeModels: utilities.getAvailableVAEs(),
vaeFolders: utilities.getVAEFolders()
vaeFolders: utilities.getVAEFolders(),
samplers: utilities.getAvailableSamplers(),
schedulers: utilities.getAvailableSchedulers()
};
await configManagement.renderUI(