mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-05 16:54:34 +00:00
fix(tui): toggle plugin on dialog submit
This commit is contained in:
parent
c17c104827
commit
a68fe8a97d
1 changed files with 6 additions and 0 deletions
|
|
@ -156,6 +156,12 @@ export function PluginsDialog(props: {
|
|||
onMove={(option) => setFocused(option.value)}
|
||||
onSelect={(option) => {
|
||||
const entry = entries().find((entry) => entry.key === option.value)
|
||||
if (
|
||||
entry?.runtime === "tui" &&
|
||||
entry.id &&
|
||||
props.plugins.registered().some((plugin) => plugin.id === entry.id)
|
||||
)
|
||||
return toggle(entry)
|
||||
if (pluginError(entry)) setDetail(entry)
|
||||
}}
|
||||
actions={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue