feat: hide run detail in webapps and installed apps (#4289)

This commit is contained in:
Joel
2024-05-11 13:40:27 +08:00
committed by GitHub
parent d8926a2571
commit 1663df8a05
9 changed files with 49 additions and 17 deletions

View File

@@ -18,12 +18,14 @@ type WorkflowProcessProps = {
grayBg?: boolean
expand?: boolean
hideInfo?: boolean
hideProcessDetail?: boolean
}
const WorkflowProcessItem = ({
data,
grayBg,
expand = false,
hideInfo = false,
hideProcessDetail = false,
}: WorkflowProcessProps) => {
const { t } = useTranslation()
const [collapse, setCollapse] = useState(!expand)
@@ -94,6 +96,7 @@ const WorkflowProcessItem = ({
<NodePanel
nodeInfo={node}
hideInfo={hideInfo}
hideProcessDetail={hideProcessDetail}
/>
</div>
))