Skip to content
Snippets Groups Projects
Commit 8317898f authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Fix bug (display default value instead of real one)

parent b00a9447
No related branches found
No related tags found
No related merge requests found
Pipeline #78118 passed with stages
in 7 minutes and 56 seconds
......@@ -12,12 +12,12 @@
</v-col>
<v-col>{{ step.tool.description }}</v-col>
</v-row>
<template v-slot:actions>
<template #actions>
<analysis-state :state="step.job.state"></analysis-state>
</template>
</v-expansion-panel-header>
<v-expansion-panel-content>
<v-template v-if="Object.keys(step.job.params).length > 0">
<template v-if="Object.keys(step.job.params).length > 0">
<v-list-item
v-for="k in Object.keys(step.job.params)"
:key="k"
......@@ -36,7 +36,7 @@
</v-list-item-content></template
>
</v-list-item>
</v-template>
</template>
<v-card v-else flat>
<v-card-text class="pb-0">
<v-alert border="left" text type="info" class="mt-4">
......
......@@ -271,7 +271,7 @@ export default {
if (!this.invocation) {
return { steps: [] }
} else {
return this.invocation
return { ...this.invocation }
}
},
......@@ -286,14 +286,17 @@ export default {
const inputObj = step.tool.inputs.find((input) => {
return input.name === key
})
// console.log(inputObj)
let inputNameToDisplay = ''
if (inputObj?.type === 'select') {
// Get the option displayed name
const sanitizedValue = value.replaceAll('"', '')
const inputValue = inputObj.options.find(([displayName, v]) => {
return v === inputObj.value
return v === sanitizedValue
})
inputNameToDisplay = inputValue[0]
} else {
// console.log(value)
inputNameToDisplay = value.slice(0, -1).slice(1)
}
return [inputObj.label, inputNameToDisplay]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment