Update script-terminal-modal.tsx

This commit is contained in:
MacRimi
2025-12-06 13:00:29 +01:00
parent a6c121dc33
commit c62f0dea6f

View File

@@ -144,7 +144,13 @@ export function ScriptTerminalModal({
</Dialog> </Dialog>
{currentInteraction && ( {currentInteraction && (
<Dialog open={true} onOpenChange={() => setCurrentInteraction(null)}> <Dialog
open={true}
onOpenChange={() => {
console.log("[v0] Interaction modal onOpenChange triggered")
setCurrentInteraction(null)
}}
>
<DialogContent> <DialogContent>
<DialogTitle>{currentInteraction.title}</DialogTitle> <DialogTitle>{currentInteraction.title}</DialogTitle>
<div className="space-y-4"> <div className="space-y-4">
@@ -152,10 +158,17 @@ export function ScriptTerminalModal({
{currentInteraction.type === "yesno" && ( {currentInteraction.type === "yesno" && (
<div className="flex gap-2"> <div className="flex gap-2">
<Button onClick={() => handleInteractionResponse("yes")} className="flex-1"> <Button
onClick={() => handleInteractionResponse("yes")}
className="flex-1 bg-blue-600 hover:bg-blue-700 text-white"
>
Yes Yes
</Button> </Button>
<Button onClick={() => handleInteractionResponse("no")} variant="outline" className="flex-1"> <Button
onClick={() => handleInteractionResponse("no")}
variant="outline"
className="flex-1 hover:bg-red-600 hover:text-white hover:border-red-600"
>
No No
</Button> </Button>
</div> </div>