Fixed bug with initialization visibility of model search button.
This commit is contained in:
@@ -3410,6 +3410,7 @@ class BrowseView {
|
|||||||
/** @type {HTMLSelectElement} */ modelTypeSelect: null,
|
/** @type {HTMLSelectElement} */ modelTypeSelect: null,
|
||||||
/** @type {HTMLSelectElement} */ modelSortSelect: null,
|
/** @type {HTMLSelectElement} */ modelSortSelect: null,
|
||||||
/** @type {HTMLInputElement} */ modelContentFilter: null,
|
/** @type {HTMLInputElement} */ modelContentFilter: null,
|
||||||
|
/** @type {HTMLButtonElement} */ searchButton: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @type {Array} */
|
/** @type {Array} */
|
||||||
@@ -3480,6 +3481,9 @@ class BrowseView {
|
|||||||
showModelInfo,
|
showModelInfo,
|
||||||
);
|
);
|
||||||
updateModelGridCallback();
|
updateModelGridCallback();
|
||||||
|
|
||||||
|
const searchButtonIsVisible = this.#settingsElements["model-real-time-search"].checked ? "none" : "";
|
||||||
|
this.elements.searchButton.style.display = searchButtonIsVisible;
|
||||||
}
|
}
|
||||||
this.updateModelGrid = updateModelGrid;
|
this.updateModelGrid = updateModelGrid;
|
||||||
|
|
||||||
@@ -3514,6 +3518,7 @@ class BrowseView {
|
|||||||
searchButton.style.display = "";
|
searchButton.style.display = "";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
this.elements.searchButton = searchButton;
|
||||||
|
|
||||||
this.element = $el("div", [
|
this.element = $el("div", [
|
||||||
$el("div.row.tab-header", [
|
$el("div.row.tab-header", [
|
||||||
|
|||||||
Reference in New Issue
Block a user