Browse Source

feat: add 'restart button' into Manager menu

pull/549/head
dr.lt.data 7 months ago
parent
commit
d24134d1fa
  1. 2
      __init__.py
  2. 19
      js/comfyui-manager.js

2
__init__.py

@ -30,7 +30,7 @@ except:
print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.")
version = [2, 15]
version = [2, 16]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
print(f"### Loading: ComfyUI-Manager ({version_str})")

19
js/comfyui-manager.js vendored

@ -226,6 +226,16 @@ const style = `
font-size: 17px !important;
}
.cm-button-red {
width: 310px;
height: 30px;
position: relative;
overflow: hidden;
font-size: 17px !important;
background-color: #500000 !important;
color: white !important;
}
.cm-experimental-button {
width: 290px;
height: 30px;
@ -769,7 +779,14 @@ class ManagerMenuDialog extends ComfyDialog {
AlternativesInstaller.instance = new AlternativesInstaller(app, self);
AlternativesInstaller.instance.show();
}
})
}),
$el("br", {}, []),
$el("button.cm-button-red", {
type: "button",
textContent: "Restart",
onclick: () => rebootAPI()
}),
];
return res;

Loading…
Cancel
Save