From 632e02a83d8149716c6f4da63a58065daae81d69 Mon Sep 17 00:00:00 2001 From: Christian Bastian <80225746+cdb-boop@users.noreply.github.com> Date: Sat, 7 Sep 2024 19:10:04 -0400 Subject: [PATCH] Disable info button while awaiting. --- web/model-manager.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/model-manager.js b/web/model-manager.js index d5bd037..2c6e9b2 100644 --- a/web/model-manager.js +++ b/web/model-manager.js @@ -1999,7 +1999,12 @@ class ModelGrid { icon: "information-outline", tooltip: "View model information", classList: "comfyui-button icon-button model-button", - action: async() => { await showModelInfo(searchPath) }, + action: async(e) => { + const [button, icon, span] = comfyButtonDisambiguate(e.target); + button.disabled = true; + await showModelInfo(searchPath); + button.disabled = false; + }, }).element, ]; const dragAdd = (e) => ModelGrid.#dragAddModel(