mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-07-03 05:09:37 +08:00
replace model-downloader with model-manager
This commit is contained in:
parent
ce69e124d5
commit
42cbbd9a9f
@ -12,8 +12,8 @@ import {
|
|||||||
} from "./comfyui-share-common.js";
|
} from "./comfyui-share-common.js";
|
||||||
import { OpenArtShareDialog } from "./comfyui-share-openart.js";
|
import { OpenArtShareDialog } from "./comfyui-share-openart.js";
|
||||||
import { CustomNodesManager } from "./custom-nodes-manager.js";
|
import { CustomNodesManager } from "./custom-nodes-manager.js";
|
||||||
|
import { ModelManager } from "./model-manager.js";
|
||||||
import { SnapshotManager } from "./snapshot.js";
|
import { SnapshotManager } from "./snapshot.js";
|
||||||
import { ModelInstaller } from "./model-downloader.js";
|
|
||||||
import { manager_instance, setManagerInstance, install_via_git_url, install_pip, rebootAPI, free_models, show_message } from "./common.js";
|
import { manager_instance, setManagerInstance, install_via_git_url, install_pip, rebootAPI, free_models, show_message } from "./common.js";
|
||||||
import { ComponentBuilderDialog, load_components, set_component_policy, getPureName } from "./components-manager.js";
|
import { ComponentBuilderDialog, load_components, set_component_policy, getPureName } from "./components-manager.js";
|
||||||
import { set_double_click_policy } from "./node_fixer.js";
|
import { set_double_click_policy } from "./node_fixer.js";
|
||||||
@ -736,14 +736,16 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
||||||
$el("button.cm-button", {
|
$el("button.cm-button", {
|
||||||
type: "button",
|
type: "button",
|
||||||
textContent: "Install Models",
|
textContent: "Model Manager",
|
||||||
onclick:
|
onclick:
|
||||||
() => {
|
() => {
|
||||||
if(!ModelInstaller.instance)
|
if(!ModelManager.instance) {
|
||||||
ModelInstaller.instance = new ModelInstaller(app, self);
|
ModelManager.instance = new ModelManager(app, self);
|
||||||
ModelInstaller.instance.show();
|
}
|
||||||
|
ModelManager.instance.show();
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user