diff --git a/ui/media/js/searchable-models.js b/ui/media/js/searchable-models.js index 86c5c068..c9cf3ea9 100644 --- a/ui/media/js/searchable-models.js +++ b/ui/media/js/searchable-models.js @@ -529,9 +529,9 @@ class ModelDropdown ) this.modelFilter.classList.add('model-selector') this.modelFilterArrow = document.querySelector(`#${this.modelFilter.id}-model-filter-arrow`) - // if (this.modelFilterArrow) { - // this.modelFilterArrow.style.color = state ? 'dimgray' : '' - // } + if (this.modelFilterArrow) { + this.modelFilterArrow.style.color = this.modelFilter.disabled ? 'dimgray' : '' + } this.modelList = document.querySelector(`#${this.modelFilter.id}-model-list`) this.modelResult = document.querySelector(`#${this.modelFilter.id}-model-result`) this.modelNoResult = document.querySelector(`#${this.modelFilter.id}-model-no-result`)