feat(ui): add Done button to ModelSelectModal in combo creation (#1031)
This commit is contained in:
parent
8f4d29caa4
commit
17cab0ed52
2 changed files with 21 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
|||
import { useState, useMemo, useEffect } from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import Modal from "./Modal";
|
||||
import Button from "./Button";
|
||||
import { getModelsByProviderId } from "@/shared/constants/models";
|
||||
import { OAUTH_PROVIDERS, APIKEY_PROVIDERS, FREE_PROVIDERS, FREE_TIER_PROVIDERS, AI_PROVIDERS, isOpenAICompatibleProvider, isAnthropicCompatibleProvider, getProviderAlias } from "@/shared/constants/providers";
|
||||
|
||||
|
|
@ -370,6 +371,19 @@ export default function ModelSelectModal({
|
|||
title={title}
|
||||
size="md"
|
||||
className="p-4!"
|
||||
footer={
|
||||
!closeOnSelect ? (
|
||||
<Button
|
||||
onClick={() => {
|
||||
onClose();
|
||||
setSearchQuery("");
|
||||
}}
|
||||
fullWidth
|
||||
>
|
||||
Done
|
||||
</Button>
|
||||
) : null
|
||||
}
|
||||
>
|
||||
{/* Search - compact */}
|
||||
<div className="mb-3">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue