Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
a0fff6cf
Commit
a0fff6cf
authored
Jan 18, 2021
by
Stefan Probst
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: don't link step to step
parent
86ed3b96
Pipeline
#168269
passed with stages
in 7 minutes and 55 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
src/screens/item/workflow/WorkflowScreen.tsx
src/screens/item/workflow/WorkflowScreen.tsx
+16
-6
No files found.
src/screens/item/workflow/WorkflowScreen.tsx
View file @
a0fff6cf
...
...
@@ -151,13 +151,23 @@ function Step({ step, index }: { step: Step; index: number }) {
<
div
className
=
"leading-8"
>
<
Markdown
text
=
{
step
.
description
}
/>
</
div
>
{
step
.
relatedItems
!=
null
&&
step
.
relatedItems
.
length
!==
0
?
(
<
VStack
>
<
h4
className
=
"font-medium"
>
Resources
</
h4
>
<
RelatedItems
items
=
{
step
.
relatedItems
}
/>
</
VStack
>
)
:
null
}
<
Related
items
=
{
step
.
relatedItems
}
/>
</
DisclosurePanel
>
</
Disclosure
>
)
}
function
Related
({
items
}:
{
items
?:
Array
<
any
>
})
{
if
(
items
==
null
)
return
null
// TODO: relations to steps
const
relatedItems
=
items
.
filter
((
item
)
=>
item
.
category
!==
'
step
'
)
if
(
relatedItems
.
length
===
0
)
return
null
return
(
<
VStack
>
<
h4
className
=
"sr-only"
>
Resources
</
h4
>
<
RelatedItems
items
=
{
relatedItems
}
/>
</
VStack
>
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment