Download Tab 'model save file name' text input value set for convenient modification.
This commit is contained in:
@@ -22,7 +22,7 @@ Download, browse and delete models in ComfyUI.
|
||||
- Advanced keyword search using `"multiple words in quotes"` or a minus sign to `-exclude`.
|
||||
- Search `/`subdirectories of model directories based on your file structure (for example, `/0/1.5/styles/clothing`).
|
||||
- Add `/` at the start of the search bar to see auto-complete suggestions.
|
||||
- Include models listed in ComfyUI's `extra_model_paths.yaml` or added in `ComfyUI/models`.
|
||||
- Include models listed in ComfyUI's `extra_model_paths.yaml` or added in `ComfyUI/models/`.
|
||||
- Sort for models (Date Created, Date Modified, Name).
|
||||
|
||||
### Model Info View
|
||||
@@ -97,7 +97,7 @@ Download, browse and delete models in ComfyUI.
|
||||
- Filter directory dropdown
|
||||
- Filter directory content in auto-suggest dropdown (not clear how this should be implemented)
|
||||
- Filters dropdown
|
||||
- Stable Diffusion model version, if applicable (Maybe dropdown list of "Base Models" is more pratical to impliment?)
|
||||
- Stable Diffusion model version, if applicable (Maybe dropdown list of "Base Models" is more practical to implement?)
|
||||
- Favorites
|
||||
- Swap between `and` and `or` keyword search? (currently `and`)
|
||||
|
||||
|
||||
@@ -2150,16 +2150,18 @@ class DownloadTab {
|
||||
true,
|
||||
);
|
||||
|
||||
const default_name = (() => {
|
||||
const filename = info["fileName"];
|
||||
// TODO: only remove valid model file extensions
|
||||
const i = filename.lastIndexOf(".");
|
||||
return i === - 1 ? filename : filename.substring(0, i);
|
||||
})();
|
||||
const el_filename = $el("input.plain-text-area", {
|
||||
type: "text",
|
||||
name: "model save file name",
|
||||
autocomplete: "off",
|
||||
placeholder: (() => {
|
||||
const filename = info["fileName"];
|
||||
// TODO: only remove valid model file extensions
|
||||
const i = filename.lastIndexOf(".");
|
||||
return i === - 1 ? filename : filename.substring(0, i);
|
||||
})(),
|
||||
placeholder: default_name,
|
||||
value: default_name,
|
||||
});
|
||||
|
||||
const filepath = info["downloadFilePath"];
|
||||
|
||||
Reference in New Issue
Block a user