mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-09 22:24:23 +08:00
feat: add 'restart button' into Manager menu
This commit is contained in:
parent
aec18c5ee2
commit
d24134d1fa
@ -30,7 +30,7 @@ except:
|
|||||||
print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.")
|
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 '')
|
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
|
||||||
print(f"### Loading: ComfyUI-Manager ({version_str})")
|
print(f"### Loading: ComfyUI-Manager ({version_str})")
|
||||||
|
|
||||||
|
|||||||
@ -226,6 +226,16 @@ const style = `
|
|||||||
font-size: 17px !important;
|
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 {
|
.cm-experimental-button {
|
||||||
width: 290px;
|
width: 290px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
@ -769,7 +779,14 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
AlternativesInstaller.instance = new AlternativesInstaller(app, self);
|
AlternativesInstaller.instance = new AlternativesInstaller(app, self);
|
||||||
AlternativesInstaller.instance.show();
|
AlternativesInstaller.instance.show();
|
||||||
}
|
}
|
||||||
})
|
}),
|
||||||
|
|
||||||
|
$el("br", {}, []),
|
||||||
|
$el("button.cm-button-red", {
|
||||||
|
type: "button",
|
||||||
|
textContent: "Restart",
|
||||||
|
onclick: () => rebootAPI()
|
||||||
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user