mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 16:36:00 +00:00
shell script runner
This commit is contained in:
15
packages/web/src/query/ShellToolbar.js
Normal file
15
packages/web/src/query/ShellToolbar.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
import ToolbarButton from '../widgets/ToolbarButton';
|
||||
|
||||
export default function ShellToolbar({ execute, cancel, busy}) {
|
||||
return (
|
||||
<>
|
||||
<ToolbarButton disabled={busy} onClick={execute} icon="fas fa-play">
|
||||
Execute
|
||||
</ToolbarButton>
|
||||
<ToolbarButton disabled={!busy} onClick={cancel} icon="fas fa-times">
|
||||
Cancel
|
||||
</ToolbarButton>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user