From e708e0cd6d6b20ec936dd595c575515f073f6893 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 28 Feb 2024 11:52:36 +0100 Subject: [PATCH] refs #6980 feat: enable List, disable summary --- src/components/ui/CardSummary.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/ui/CardSummary.vue b/src/components/ui/CardSummary.vue index cb2c97746..bbe9f798a 100644 --- a/src/components/ui/CardSummary.vue +++ b/src/components/ui/CardSummary.vue @@ -3,10 +3,16 @@ import { onMounted, ref, watch } from 'vue'; import axios from 'axios'; import SkeletonSummary from 'components/ui/SkeletonSummary.vue'; import VnLv from 'src/components/ui/VnLv.vue'; +import { useRoute } from 'vue-router'; -onMounted(() => fetch()); +const route = useRoute(); const entity = ref(); +const isSummary = ref(true); +onMounted(() => { + isSummary.value = !String(route.path).endsWith('/summary'); + fetch(); +}); const props = defineProps({ url: { type: String, @@ -48,7 +54,13 @@ watch(props, async () => {