mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-12-14 08:06:22 +00:00
Update script-terminal-modal.tsx
This commit is contained in:
@@ -23,6 +23,7 @@ interface ScriptTerminalModalProps {
|
|||||||
onClose: () => void
|
onClose: () => void
|
||||||
scriptPath: string
|
scriptPath: string
|
||||||
scriptTitle: string
|
scriptTitle: string
|
||||||
|
scriptDescription: string // Added scriptDescription prop
|
||||||
params?: Record<string, string>
|
params?: Record<string, string>
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,6 +32,7 @@ export function ScriptTerminalModal({
|
|||||||
onClose,
|
onClose,
|
||||||
scriptPath,
|
scriptPath,
|
||||||
scriptTitle,
|
scriptTitle,
|
||||||
|
scriptDescription, // Added scriptDescription variable
|
||||||
params = {},
|
params = {},
|
||||||
}: ScriptTerminalModalProps) {
|
}: ScriptTerminalModalProps) {
|
||||||
const termRef = useRef<any>(null)
|
const termRef = useRef<any>(null)
|
||||||
@@ -545,6 +547,7 @@ export function ScriptTerminalModal({
|
|||||||
<div className="flex items-center gap-2 p-4 border-b">
|
<div className="flex items-center gap-2 p-4 border-b">
|
||||||
<div>
|
<div>
|
||||||
<h2 className="text-lg font-semibold">{scriptTitle}</h2>
|
<h2 className="text-lg font-semibold">{scriptTitle}</h2>
|
||||||
|
<p className="text-sm text-muted-foreground">{scriptDescription}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user