mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-07-03 13:19:20 +08:00
fixed filter
This commit is contained in:
parent
dfb265cc97
commit
78abaa86e9
@ -246,17 +246,20 @@ export class ModelManager {
|
|||||||
updateFilter() {
|
updateFilter() {
|
||||||
const $filter = this.element.querySelector(".cmm-manager-filter");
|
const $filter = this.element.querySelector(".cmm-manager-filter");
|
||||||
$filter.innerHTML = this.filterList.map(item => {
|
$filter.innerHTML = this.filterList.map(item => {
|
||||||
return `<option value="${item.value}">${item.label}</option>`
|
const selected = item.value === this.filter ? " selected" : "";
|
||||||
|
return `<option value="${item.value}"${selected}>${item.label}</option>`
|
||||||
}).join("");
|
}).join("");
|
||||||
|
|
||||||
const $type = this.element.querySelector(".cmm-manager-type");
|
const $type = this.element.querySelector(".cmm-manager-type");
|
||||||
$type.innerHTML = this.typeList.map(item => {
|
$type.innerHTML = this.typeList.map(item => {
|
||||||
return `<option value="${item.value}">${item.label}</option>`
|
const selected = item.value === this.type ? " selected" : "";
|
||||||
|
return `<option value="${item.value}"${selected}>${item.label}</option>`
|
||||||
}).join("");
|
}).join("");
|
||||||
|
|
||||||
const $base = this.element.querySelector(".cmm-manager-base");
|
const $base = this.element.querySelector(".cmm-manager-base");
|
||||||
$base.innerHTML = this.baseList.map(item => {
|
$base.innerHTML = this.baseList.map(item => {
|
||||||
return `<option value="${item.value}">${item.label}</option>`
|
const selected = item.value === this.base ? " selected" : "";
|
||||||
|
return `<option value="${item.value}"${selected}>${item.label}</option>`
|
||||||
}).join("");
|
}).join("");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user