Skip to content

Commit

Permalink
Merge branch 'main' of github.com:platforma-open/mixcr-clonotyping
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-ainsel committed Oct 15, 2024
2 parents 4b70a39 + cb2a1a3 commit a0195ad
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 23 deletions.
6 changes: 6 additions & 0 deletions .changeset/wet-yaks-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@platforma-open/milaboratories.mixcr-clonotyping.ui': patch
'@platforma-open/milaboratories.mixcr-clonotyping': patch
---

Use PlDropdownRef
44 changes: 33 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ catalog:

'@platforma-sdk/workflow-tengo': ^1.4.1

'@milaboratories/uikit': ^1.2.17
'@platforma-sdk/ui-vue': ^1.5.38
'@platforma-sdk/ui-vue': ^1.5.57
'@milaboratories/helpers': ^1.6.5

'@milaboratories/software-pframes-conv': ^1.5.10
Expand Down
15 changes: 5 additions & 10 deletions ui/src/SettingsPanel.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
<script setup lang="ts">
import { useApp } from './app';
import { PlDropdown } from '@platforma-sdk/ui-vue';
import { PlDropdown, PlDropdownRef } from '@platforma-sdk/ui-vue';
import { computed, watch } from 'vue';
import { retentive } from './retentive';
const app = useApp();
const inputOptions = computed(() =>
app.outputValues.inputOptions?.map((v) => ({
text: v.label,
value: v.ref,
}))
);
const inputOptions = computed(() => app.outputValues.inputOptions ?? []);
const args = app.createArgsModel();
Expand Down Expand Up @@ -45,7 +40,7 @@ const speciesOptions = [
</script>

<template>
<pl-dropdown :options="inputOptions ?? []" v-model="args.model.input" label="Select dataset" clearable />
<pl-dropdown :options="presetOptions ?? []" v-model="args.model.preset" label="Select preset" clearable />
<pl-dropdown v-if="needSpecies" :options="speciesOptions" v-model="args.model.species" label="Select species" />
<PlDropdownRef :options="inputOptions ?? []" v-model="args.model.input" label="Select dataset" clearable />
<PlDropdown :options="presetOptions ?? []" v-model="args.model.preset" label="Select preset" clearable />
<PlDropdown v-if="needSpecies" :options="speciesOptions" v-model="args.model.species" label="Select species" />
</template>

0 comments on commit a0195ad

Please sign in to comment.