tui: fix model selection dialog to properly replace current dialog instead of creating nested dialogs
This commit is contained in:
parent
5fc0a55f54
commit
90077b6dd0
3 changed files with 41 additions and 34 deletions
|
|
@ -864,7 +864,9 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|||
as="div"
|
||||
variant="ghost"
|
||||
onClick={() =>
|
||||
dialog.push(() => (providers.paid().length > 0 ? <DialogSelectModel /> : <DialogSelectModelUnpaid />))
|
||||
dialog.replace(() =>
|
||||
providers.paid().length > 0 ? <DialogSelectModel /> : <DialogSelectModelUnpaid />,
|
||||
)
|
||||
}
|
||||
>
|
||||
{local.model.current()?.name ?? "Select model"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue