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`.
|
- 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`).
|
- 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.
|
- 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).
|
- Sort for models (Date Created, Date Modified, Name).
|
||||||
|
|
||||||
### Model Info View
|
### Model Info View
|
||||||
@@ -97,7 +97,7 @@ Download, browse and delete models in ComfyUI.
|
|||||||
- Filter directory dropdown
|
- Filter directory dropdown
|
||||||
- Filter directory content in auto-suggest dropdown (not clear how this should be implemented)
|
- Filter directory content in auto-suggest dropdown (not clear how this should be implemented)
|
||||||
- Filters dropdown
|
- 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
|
- Favorites
|
||||||
- Swap between `and` and `or` keyword search? (currently `and`)
|
- Swap between `and` and `or` keyword search? (currently `and`)
|
||||||
|
|
||||||
|
|||||||
@@ -2150,16 +2150,18 @@ class DownloadTab {
|
|||||||
true,
|
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", {
|
const el_filename = $el("input.plain-text-area", {
|
||||||
type: "text",
|
type: "text",
|
||||||
name: "model save file name",
|
name: "model save file name",
|
||||||
autocomplete: "off",
|
autocomplete: "off",
|
||||||
placeholder: (() => {
|
placeholder: default_name,
|
||||||
const filename = info["fileName"];
|
value: default_name,
|
||||||
// TODO: only remove valid model file extensions
|
|
||||||
const i = filename.lastIndexOf(".");
|
|
||||||
return i === - 1 ? filename : filename.substring(0, i);
|
|
||||||
})(),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const filepath = info["downloadFilePath"];
|
const filepath = info["downloadFilePath"];
|
||||||
|
|||||||
Reference in New Issue
Block a user