Skip to content

Commit

Permalink
Merge pull request #306 from VariantEffect/estelle/addUrnInExperiment…
Browse files Browse the repository at this point in the history
…Dropdown

Include the URN in the Experiment dropdown when creating score sets
  • Loading branch information
EstelleDa authored Oct 22, 2024
2 parents 80ca380 + cff0793 commit 4f898b2
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/components/screens/ScoreSetCreator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,24 @@
<div v-else style="position: relative;">
<span class="p-float-label">
<Dropdown
ref="experimentInput"
v-model="experiment"
:id="$scopedId('input-experiment')"
filter optionLabel="title"
:options="editableExperiments"
optionLabel="title"
optionValue=""
style="width: 50%"
@change="populateExperimentMetadata"
/>
:virtualScrollerOptions="{ itemSize: 50 }"
@option-select="populateExperimentMetadata"
style="width: 100%;"
>
<template #option="slotProps">
{{slotProps.option.urn}}: {{slotProps.option.title}}
</template>
<template #empty>
<div style="padding: 10px; text-align:center;">
No experiments found.
</div>
</template>
</Dropdown>
<label :for="$scopedId('input-experiment')">Experiment</label>
</span>
<span v-if="validationErrors.experiment" class="mave-field-error">{{ validationErrors.experiment }}</span>
Expand Down

0 comments on commit 4f898b2

Please sign in to comment.