Skip to content

Commit

Permalink
fix: build package button ui
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Nov 25, 2024
1 parent 9d1406e commit 0fe6323
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,15 @@ app.registerExtension({
separator.style.margin = "20px 0";
separator.style.width = "100%";
menu.append(separator);
const packButton = document.createElement("button");
packButton.textContent = "Package";
packButton.onclick = downloadPackage;
menu.append(packButton);

const buildButton = document.createElement("button");
buildButton.textContent = "Build";
buildButton.onclick = buildBento;
menu.append(buildButton);

try {
// new style Manager buttons
Expand Down Expand Up @@ -488,15 +497,5 @@ app.registerExtension({
catch(exception) {
console.log('ComfyUI is outdated. New style menu based features are disabled.');
}

const packButton = document.createElement("button");
packButton.textContent = "Package";
packButton.onclick = downloadPackage;
menu.append(packButton);

const buildButton = document.createElement("button");
buildButton.textContent = "Build";
buildButton.onclick = buildBento;
menu.append(buildButton);
}
});

0 comments on commit 0fe6323

Please sign in to comment.