Better model manager UI (#802)
* fixed row height with lib API * update grid lib * UI adjustment * move some of api to common utils * added model manager * update install * replace model-downloader with model-manager * replace model-downloader with model-manager * fixed filter * fixed status * apply loading animation for install button * sort type and base
This commit is contained in:
@@ -12,8 +12,8 @@ import {
|
||||
} from "./comfyui-share-common.js";
|
||||
import { OpenArtShareDialog } from "./comfyui-share-openart.js";
|
||||
import { CustomNodesManager } from "./custom-nodes-manager.js";
|
||||
import { ModelManager } from "./model-manager.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 { ComponentBuilderDialog, load_components, set_component_policy, getPureName } from "./components-manager.js";
|
||||
import { set_double_click_policy } from "./node_fixer.js";
|
||||
@@ -736,14 +736,16 @@ class ManagerMenuDialog extends ComfyDialog {
|
||||
}
|
||||
}),
|
||||
|
||||
|
||||
$el("button.cm-button", {
|
||||
type: "button",
|
||||
textContent: "Install Models",
|
||||
textContent: "Model Manager",
|
||||
onclick:
|
||||
() => {
|
||||
if(!ModelInstaller.instance)
|
||||
ModelInstaller.instance = new ModelInstaller(app, self);
|
||||
ModelInstaller.instance.show();
|
||||
if(!ModelManager.instance) {
|
||||
ModelManager.instance = new ModelManager(app, self);
|
||||
}
|
||||
ModelManager.instance.show();
|
||||
}
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user