Skip to content

Commit

Permalink
AMP-3182: added msg to indicate empty workflow
Browse files Browse the repository at this point in the history
AMP-3081: added msg to indicate empty param list
  • Loading branch information
yingfeng-iu committed May 8, 2024
1 parent 503b227 commit 9e0065f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/workflow/SelectWorkflow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,25 @@
<h4>Workflow Node Parameters</h4>
<div class="scroll-div">
<ul class="list-unstyled">
<li v-if="workflowSubmission.selectedWorkflowParameters.length==0">
No step specified in workflow.
</li>
<li
v-for="(param,
index) in workflowSubmission.selectedWorkflowParameters"
v-bind:key="index"
:key="index"
class="node-li"
>
<h5 class="node-name">
Node {{ param.nodeId }}: {{ param.nodeName }}
</h5>
<div v-if="param.params.length==0">
No parameter specified.
</div>
<div
v-for="(p, paramIndex) in param.params"
v-bind:key="paramIndex"
v-bind:value="p.name"
:key="paramIndex"
:value="p.name"
>
{{ p.name }}: {{ p.value }}
</div>
Expand Down
9 changes: 9 additions & 0 deletions src/components/workflow/WorkflowList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@
type="dark"
class="nav-pills"
>
<span v-if="!workflow.details || workflow.details.length==0">
No step specified in workflow.
</span>
<span v-for="(node, i) in workflow.details" :key="i">
<b-nav-item
:class="
Expand All @@ -151,6 +154,12 @@
workflow && workflow.details && workflow.details.length
"
>
<div
v-if="workflow.details[workflow.selectedNode].params.length==0"
class="mr-5 d-flex"
>
No parameter specified.
</div>
<div
class="mr-5 d-flex"
v-for="(p, paramIndex) in workflow.details[
Expand Down

0 comments on commit 9e0065f

Please sign in to comment.