Skip to content

Commit

Permalink
feat: make missing medication chart tables clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Dec 10, 2024
1 parent 3ca5cb6 commit f8fd31a
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineComponent({
required: true,
},
},
setup(props) {
setup() {
const queryFilterStore = useQueryFilterStore();
const recommendedVNode = ref<null | typeof DQuerySummaryNested>(null);
const usedVNode = ref<null | typeof DQuerySummaryNested>(null);
Expand Down Expand Up @@ -74,7 +74,9 @@ export default defineComponent({
queryFilterStore.commit();

if (!hasChanged) {
usedVNode.value.reset();
if (usedVNode.value) {
usedVNode.value.reset();
}
}
};

Expand Down Expand Up @@ -104,6 +106,8 @@ export default defineComponent({
<DKVChartTableSwitch
:type="'bar'"
:data="item.value.elements"
:clickable="true"
@clicked="handleRecommendationClick"
/>
</template>
</DQuerySummaryGrouped>
Expand Down Expand Up @@ -152,7 +156,11 @@ export default defineComponent({
<div class="d-flex flex-column gap-2">
<div class="entity-card text-center mb-3 w-100">
<h6>Durchschnittliche Dauer <small>(in Wochen)</small></h6>
<DKVChartTableSwitch :data="entity.therapies.meanDurations" />
<DKVChartTableSwitch
:data="entity.therapies.meanDurations"
:clickable="true"
@clicked="handleUsedClick"
/>
</div>
</div>
</div>
Expand Down

0 comments on commit f8fd31a

Please sign in to comment.