fix(tui): show toast when variant_list keybind used with no variants (#30724)
This commit is contained in:
parent
94c49b20ba
commit
cb65926c82
@ -715,6 +715,13 @@ function App(props: { onSnapshot?: () => Promise<string[]> }) {
|
||||
hidden: local.model.variant.list().length === 0,
|
||||
slashName: "variants",
|
||||
run: () => {
|
||||
if (local.model.variant.list().length === 0) {
|
||||
return toast.show({
|
||||
title: "No variants available",
|
||||
message: "The current model does not support any variants.",
|
||||
variant: "info",
|
||||
})
|
||||
}
|
||||
dialog.replace(() => <DialogVariant />)
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user