From f15205c92537ea1826bc67848ecc7eb08da90395 Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Tue, 22 Oct 2024 14:46:47 +0200 Subject: [PATCH] feat: store collapsible state in local storage (#2043) (#2047) --- .../QueryEditor/EffectsControls.vue | 6 ++- .../QueryEditor/GenotypeControls.vue | 6 +++ .../QueryEditor/PathogenicityPrioControls.vue | 7 ++- .../QueryEditor/PhenotypePrioControls.vue | 5 ++ .../QueryEditor/PredefinedQueryList.vue | 7 ++- .../components/QueryEditor/QueryEditor.vue | 27 ++++++++++ .../components/QueryEditor/QueryList.vue | 7 ++- .../seqvars/components/QueryEditor/groups.ts | 3 +- .../QueryEditor/ui/CollapsibleGroup.vue | 53 ++++++++++++++++--- 9 files changed, 110 insertions(+), 11 deletions(-) diff --git a/frontend/src/seqvars/components/QueryEditor/EffectsControls.vue b/frontend/src/seqvars/components/QueryEditor/EffectsControls.vue index 5d15851da..7beee8b5b 100644 --- a/frontend/src/seqvars/components/QueryEditor/EffectsControls.vue +++ b/frontend/src/seqvars/components/QueryEditor/EffectsControls.vue @@ -205,7 +205,11 @@ const maxExonDistance = computed({ /> - +
{{ title }}
diff --git a/frontend/src/seqvars/components/QueryEditor/GenotypeControls.vue b/frontend/src/seqvars/components/QueryEditor/GenotypeControls.vue index 136c04997..33670e90d 100644 --- a/frontend/src/seqvars/components/QueryEditor/GenotypeControls.vue +++ b/frontend/src/seqvars/components/QueryEditor/GenotypeControls.vue @@ -5,6 +5,7 @@ import { SeqvarsQueryDetailsRequest, SeqvarsSampleGenotypePydantic, } from '@varfish-org/varfish-api/lib' +import { ref } from 'vue' import { PedigreeObj } from '@/cases/stores/caseDetails' import CollapsibleGroup from '@/seqvars/components/QueryEditor/ui/CollapsibleGroup.vue' @@ -191,11 +192,15 @@ const coerceRecessiveMarkers = ( return newData } + +/** Whether the recessive mode collapsible group is opend. */ +const collapsibleGroupOpen = ref(true)