Skip to content

Commit

Permalink
feat: restrict upgrade/downgrade of AMCG seqvar criteria (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Dec 21, 2023
1 parent 223d904 commit 64825ef
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
/** The component for the Acmg Criteria Card. */
import {
ACMG_CRITERIA_DEFS,
ACMG_EVIDENCE_LEVELS_BENIGN,
ACMG_EVIDENCE_LEVELS_PATHOGENIC,
AcmgCriteria,
AcmgEvidenceLevel,
type CriteriaState,
Expand Down Expand Up @@ -68,19 +66,15 @@ const switchCriteria = (criteria: AcmgCriteria, presence: Presence) => {
class="switch"
@update:model-value="switchCriteria(props.criteria, props.criteriaState.presence)"
/>
<v-tooltip :text="ACMG_CRITERIA_DEFS.get(props.criteria)?.hint">
<v-tooltip :text="ACMG_CRITERIA_DEFS.get(props.criteria)!.hint">
<template #activator="{ props: vProps }">
<v-icon style="margin: 10px" v-bind="vProps"> mdi-information </v-icon>
</template>
</v-tooltip>
</div>
<v-select
:model-value="props.criteriaState.evidenceLevel"
:items="
ACMG_EVIDENCE_LEVELS_PATHOGENIC.includes(props.criteriaState.evidenceLevel)
? ACMG_EVIDENCE_LEVELS_PATHOGENIC
: ACMG_EVIDENCE_LEVELS_BENIGN
"
:items="ACMG_CRITERIA_DEFS.get(props.criteria)!.evidenceLevels"
hide-details="auto"
density="compact"
class="select"
Expand Down
Loading

0 comments on commit 64825ef

Please sign in to comment.