test
This commit is contained in:
parent
5cb05d933f
commit
5a8dfc60af
@ -276,7 +276,7 @@ export function ActionItem(p: { action: ActionInfo, identifierSubstring?: string
|
||||
}
|
||||
|
||||
return (<>
|
||||
<Button variant={p.variant} disabled={!isUserAllowed(user, p.action)} onClick={() => { if (p.onClick) { p.onClick() } p.action.response_action == 'Terminal'?setTerminal(`ws${API_URL.slice("http".length)}${url}`):setForm(true) }} sx={p.sx}>{p.action.name}</Button >
|
||||
<Button variant={p.variant} disabled={!isUserAllowed(user, p.action)} onClick={() => { if (p.onClick) { p.onClick() } p.action.response_action == 'Terminal'?createTerminal(`ws${API_URL.slice("http".length)}${url}`):setForm(true) }} sx={p.sx}>{p.action.name}</Button >
|
||||
<Modal
|
||||
onClose={() => { setForm(false); setFormData({}); }}
|
||||
open={form}
|
||||
@ -290,7 +290,7 @@ export function ActionItem(p: { action: ActionInfo, identifierSubstring?: string
|
||||
open={terminal != null}
|
||||
>
|
||||
<Box sx={terminalModalStyle}>
|
||||
<TerminalComponent websocket={terminal} />
|
||||
{/* <TerminalComponent websocket={terminal} /> */}
|
||||
</Box>
|
||||
</Modal>
|
||||
</>)
|
||||
|
@ -1,6 +1,5 @@
|
||||
// src/components/Terminal.tsx
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import NewWindow from 'react-new-window';
|
||||
import { Terminal } from 'xterm';
|
||||
import { FitAddon } from 'xterm-addon-fit';
|
||||
import 'xterm/css/xterm.css';
|
||||
|
Loading…
x
Reference in New Issue
Block a user