test
This commit is contained in:
parent
8e67cae328
commit
16f7aefb82
@ -288,9 +288,11 @@ export function ActionItem(p: { action: ActionInfo, identifierSubstring?: string
|
||||
</body>
|
||||
</html>
|
||||
`)
|
||||
const root = ReactDOM.createRoot(NewWindow.document.getElementById('root') as HTMLElement)
|
||||
root.render(<TerminalComponent websocket={websocket}/>)
|
||||
}
|
||||
NewWindow.onload = () => {
|
||||
const root = ReactDOM.createRoot(NewWindow.document.getElementById('root') as HTMLElement);
|
||||
root.render(<TerminalComponent websocket={websocket}/>);
|
||||
};
|
||||
}
|
||||
|
||||
return (<>
|
||||
<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 >
|
||||
|
Loading…
x
Reference in New Issue
Block a user