Skip to content

Commit f7f3fa0

Browse files
author
anmarhindi
committed
Re-added ignoreDisabledForSearch
1 parent e10be3c commit f7f3fa0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/models-download/AddModelDownloadModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default function AddModelDownloadModal() {
7979
<span className="card-title mb-0 label-text flex"><span className="cursor-help underline filtersUnderline">Name</span></span>
8080
</Tooltip>
8181
<Dropdown2 options={filteredList && filteredList} useDifferentTextColor={colorDownloadedModels} differentTextColor="green" valuePropertyPath="configString"
82-
hasSearchBar={true} dropdownItemsClasses="max-h-96 overflow-y-auto"
82+
hasSearchBar={true} dropdownItemsClasses="max-h-96 overflow-y-auto" ignoreDisabledForSearch={true}
8383
selectedOption={(option: any) => {
8484
setModelName(option.configString);
8585
}} optionsHaveHoverBox={true} hoverBoxList={hoverBoxList} lineSeparatorIndex={lineSeparatorIndex}

src/components/projects/projectId/heuristics/modals/AddZeroShotModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default function AddZeroShotModal() {
155155
</div>
156156
</Tooltip>
157157
<Dropdown2 options={filteredList && filteredList} hasSearchBar={true} optionsHaveLink={true} optionsHaveHoverBox={true} valuePropertyPath="configString"
158-
useDifferentTextColor={colorDownloadedModels} differentTextColor="green"
158+
useDifferentTextColor={colorDownloadedModels} differentTextColor="green" ignoreDisabledForSearch={true}
159159
linkList={filteredList && filteredList.map(model => model.link)}
160160
selectedOption={(option: any) => setModel(option.configString)}
161161
hoverBoxList={hoverBoxList}

src/components/projects/projectId/settings/embeddings/AddNewEmbeddingModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ function SuggestionsModel(props: SuggestionsProps) {
363363
<span className="card-title mb-0 label-text flex"><span className="cursor-help underline filtersUnderline">Model</span></span>
364364
</Tooltip>
365365
<Dropdown2 options={filteredList && filteredList} hasSearchBar={true} differentTextColor="green" useDifferentTextColor={colorDownloadedModels} valuePropertyPath="configString"
366-
selectedOption={(option: any) => props.selectedOption(option.configString)} optionsHaveHoverBox={true} hoverBoxList={hoverBoxList}
366+
selectedOption={(option: any) => props.selectedOption(option.configString)} optionsHaveHoverBox={true} hoverBoxList={hoverBoxList} ignoreDisabledForSearch={true}
367367
searchTextTyped={(option: string) => props.selectedOption(option)}
368368
filteredOptions={(option: string) => setFilteredList(props.options.filter((val: any) => val.configString.includes(option)))} />
369369
</>
@@ -382,7 +382,7 @@ function SuggestionsAzure(props: SuggestionsProps) {
382382
return <><Tooltip content={props.tooltip} placement="right" color="invert">
383383
<span className="card-title mb-0 label-text flex"><span className="cursor-help underline filtersUnderline">{props.name}</span></span>
384384
</Tooltip>
385-
<Dropdown2 options={filteredList && filteredList} hasSearchBar={true}
385+
<Dropdown2 options={filteredList && filteredList} hasSearchBar={true} ignoreDisabledForSearch={true}
386386
selectedOption={(option: string) => props.selectedOption(option)}
387387
searchTextTyped={(option: string) => props.selectedOption(option)}
388388
filteredOptions={(option: string) => setFilteredList(props.options.filter((val: any) => val.includes(option)))} />

0 commit comments

Comments
 (0)