Fixed toobar shown in graph mode (#2720)

This commit is contained in:
Erik Jan de Wit 2022-06-01 11:19:39 +02:00 committed by GitHub
parent a7719d1ace
commit 8202f363c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -317,7 +317,7 @@ export default function FlowDetails() {
dropdownItems={dropdownItems}
/>
<PageSection variant="light">
{tableView && executionList && hasExecutions && (
{executionList && hasExecutions && (
<>
<Toolbar id="toolbar">
<ToolbarContent>
@ -360,8 +360,9 @@ export default function FlowDetails() {
</ToolbarContent>
</Toolbar>
<DeleteConfirm />
{tableView && (
<DataList
aria-label="flows"
aria-label={t("flows")}
onDragFinish={(order) => {
const withoutHeaderId = order.slice(1);
setLiveText(
@ -410,7 +411,9 @@ export default function FlowDetails() {
onAddExecution={(execution, type) =>
addExecution(execution.displayName!, type)
}
onAddFlow={(flow) => addFlow(execution.displayName!, flow)}
onAddFlow={(flow) =>
addFlow(execution.displayName!, flow)
}
onDelete={(execution) => {
setSelectedExecution(execution);
toggleDeleteDialog();
@ -419,6 +422,7 @@ export default function FlowDetails() {
))}
</>
</DataList>
)}
{flow && (
<>
{showAddExecutionDialog && (