docs: added plugins documentation (#10989)
(Should be merged after the next release) Closes DX-1294
This commit is contained in:
@@ -8,6 +8,7 @@ import { WorkflowDiagramLegend } from "../Common/Legend"
|
||||
|
||||
export const WorkflowDiagramList = ({
|
||||
workflow,
|
||||
hideLegend = false,
|
||||
}: WorkflowDiagramCommonProps) => {
|
||||
const clusters = createNodeClusters(workflow.steps)
|
||||
|
||||
@@ -20,7 +21,7 @@ export const WorkflowDiagramList = ({
|
||||
<WorkflowDiagramListDepth cluster={cluster} next={next} key={depth} />
|
||||
)
|
||||
})}
|
||||
<WorkflowDiagramLegend />
|
||||
{!hideLegend && <WorkflowDiagramLegend />}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -6,9 +6,13 @@ import { Loading } from "../.."
|
||||
import { WorkflowDiagramCanvas } from "./Canvas"
|
||||
import { WorkflowDiagramList } from "./List"
|
||||
|
||||
export type WorkflowDiagramCommonOptionsProps = {
|
||||
hideLegend?: boolean
|
||||
}
|
||||
|
||||
export type WorkflowDiagramCommonProps = {
|
||||
workflow: Workflow
|
||||
}
|
||||
} & WorkflowDiagramCommonOptionsProps
|
||||
|
||||
export type WorkflowDiagramType = "canvas" | "list"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user