From d18f12150740461971b0ed145740246ada96e9e9 Mon Sep 17 00:00:00 2001 From: Joan Date: Tue, 8 Nov 2022 07:41:36 +0100 Subject: [PATCH 1/6] Descriptor component --- src/components/ui/CardDescriptor.vue | 91 +++++++++++++++++++++++ src/pages/Claim/Card/ClaimCard.vue | 92 ++++++++++++++++++++---- src/pages/Claim/Card/ClaimDescriptor.vue | 0 3 files changed, 169 insertions(+), 14 deletions(-) create mode 100644 src/components/ui/CardDescriptor.vue create mode 100644 src/pages/Claim/Card/ClaimDescriptor.vue diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue new file mode 100644 index 000000000..e8fc2c675 --- /dev/null +++ b/src/components/ui/CardDescriptor.vue @@ -0,0 +1,91 @@ + + + + + diff --git a/src/pages/Claim/Card/ClaimCard.vue b/src/pages/Claim/Card/ClaimCard.vue index 29b3b4ee7..4ef530103 100644 --- a/src/pages/Claim/Card/ClaimCard.vue +++ b/src/pages/Claim/Card/ClaimCard.vue @@ -5,6 +5,7 @@ import { useI18n } from 'vue-i18n'; import axios from 'axios'; import { useState } from 'src/composables/useState'; import { toDate } from 'src/filters'; +import CardDescriptor from 'src/components/ui/CardDescriptor.vue'; const route = useRoute(); const { t } = useI18n(); @@ -13,7 +14,7 @@ const state = useState(); onMounted(async () => { await fetch(); }); -const claim = ref({}); +const claim = ref(); async function fetch() { const entityId = route.params.id; @@ -46,8 +47,71 @@ function stateColor(code) {