query - basic print workflow - messages on client

This commit is contained in:
Jan Prochazka
2020-04-05 20:48:04 +02:00
parent 3df4e9b7dc
commit 72375ec635
13 changed files with 315 additions and 24 deletions

View File

@@ -1,8 +1,10 @@
import React from 'react'
import ToolbarButton from '../widgets/ToolbarButton'
import React from 'react';
import ToolbarButton from '../widgets/ToolbarButton';
export default function QueryToolbar() {
return <>
<ToolbarButton onClick={()=>{}}>Execute</ToolbarButton>
export default function QueryToolbar({ execute,isDatabaseDefined }) {
return (
<>
<ToolbarButton disabled={!isDatabaseDefined} onClick={execute}>Execute</ToolbarButton>
</>
}
);
}