diff --git a/frontend/src/components/GeneDetails/ConditionsCard.vue b/frontend/src/components/GeneDetails/ConditionsCard.vue index d4b9a6c4..1c6493b2 100644 --- a/frontend/src/components/GeneDetails/ConditionsCard.vue +++ b/frontend/src/components/GeneDetails/ConditionsCard.vue @@ -169,6 +169,20 @@ const initShowDiseaseDetails = () => { showDiseaseDetails.value = conditions.value.diseaseAssociations.map(() => false) } +/** Sorting `v-model` attributes for disease list. */ +const sortKeyDisease = ref('diseaseName') +const sortOrderDisease = ref<'asc' | 'desc'>('asc') +const sortItemsDisease = [ + { + label: 'confidence', + key: 'confidence' + }, + { + label: 'name', + key: 'diseaseName' + } +] + onMounted(() => initShowDiseaseDetails()) watch( () => conditions.value, @@ -200,6 +214,24 @@ const initShowPanelDetails = () => { showPanelDetails.value = conditions.value.diseaseAssociations.map(() => false) } +/** Sorting `v-model` attributes for PanelApp panel list. */ +const sortKeyPanelApp = ref('confidenceLevel') +const sortOrderPanelApp = ref<'asc' | 'desc'>('desc') +const sortItemsPanelApp = [ + { + label: 'confidence', + key: 'confidenceLevel' + }, + { + label: 'name', + key: 'panel.name' + }, + { + label: 'mode of inheritance', + key: 'modeOfInheritance' + } +] + onMounted(() => initShowPanelDetails()) watch( () => conditions.value, @@ -246,154 +278,287 @@ watch( -
- Associated Diseases - -