mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-12-14 16:16:21 +00:00
Update script-terminal-modal.tsx
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user