From 7c66ea2c59a8166cebe0bce50f25bb2679193352 Mon Sep 17 00:00:00 2001 From: JaredTherriault Date: Mon, 15 Jan 2024 14:42:41 -0800 Subject: [PATCH] Update imageDrawer.js -Add tooltips to context options -Add future planned contexts -Disable unimplemented context options --- web/js/ImageDrawer/imageDrawer.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/web/js/ImageDrawer/imageDrawer.js b/web/js/ImageDrawer/imageDrawer.js index b9867dd..fcf9316 100644 --- a/web/js/ImageDrawer/imageDrawer.js +++ b/web/js/ImageDrawer/imageDrawer.js @@ -30,12 +30,14 @@ export const defaultKeyList = "prompt, workflow"; // Context selection constants const contextSelectorOptionNames = { - feedName: "feed", - tempName: "temp/history", - inputName: "input", - loraName: "Lora/Lycoris", - embeddingsName: "Embeddings", - pngInfoName: "Image Info" + feedName: { name: "feed", description: "The latest generations from this web session (cleared on page refresh)"}, + tempName: { name: "temp/history", description: "The generations you've created since the last comfyUI server restart"}, +// inputName: { name: "input", description: "Images and videos found in your input folder"}, + loraName: { name: "Lora/Lycoris", description: "Lora and Lycoris models found in your Lora directory"}, +// embeddingsName: { name: "Embeddings", description: "Embedding/textual inversion models found in your embeddings directory"}, +// pngInfoName: { name: "Image Info", description: "Read and display metadata from an image or video"}, +// compareName: { name: "Compare", description: "Compare generations sent to this context via menu"}, +// resourcesName: { name: "Resources", description: "For things like poses, depth images, etc"}, }; class ContextState { @@ -308,8 +310,9 @@ const createContextSelector = () => { for (const optionLabel in contextSelectorOptionNames) { if (contextSelectorOptionNames.hasOwnProperty(optionLabel)) { const option = document.createElement("option"); - option.value = contextSelectorOptionNames[optionLabel]; - option.textContent = contextSelectorOptionNames[optionLabel]; + option.value = contextSelectorOptionNames[optionLabel].name; + option.textContent = contextSelectorOptionNames[optionLabel].name; + option.title = contextSelectorOptionNames[optionLabel].description; ContextSelector.appendChild(option); } }