From 388d0da414373e74fcbdbdd7e5c02eca846c75f1 Mon Sep 17 00:00:00 2001
From: David Mendez <dmendez@ebi.ac.uk>
Date: Tue, 14 Jan 2025 15:54:57 -0500
Subject: [PATCH] Add entity ID to report cards to create link to entity
 correctly

---
 components/report_cards/assay/EubopenAssayReportCard.vue        | 2 ++
 .../report_cards/chemical_probe/EubopenCompoundReportCard.vue   | 2 ++
 components/report_cards/target/TargetReportCard.vue             | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/components/report_cards/assay/EubopenAssayReportCard.vue b/components/report_cards/assay/EubopenAssayReportCard.vue
index 27de97a..ae38ccd 100644
--- a/components/report_cards/assay/EubopenAssayReportCard.vue
+++ b/components/report_cards/assay/EubopenAssayReportCard.vue
@@ -4,6 +4,7 @@
       :report-card-structure="reportCardStructure"
       :item-i-d="itemID"
       :store-module-name="storeModuleName"
+      :entity-i-d="entityID"
     />
   </div>
 </template>
@@ -32,6 +33,7 @@ export default {
   data() {
     return {
       storeModuleName: 'assayReportCard',
+      entityID: EntityNames.EubopenAssay.entityID,
     }
   },
   computed: mapState({
diff --git a/components/report_cards/chemical_probe/EubopenCompoundReportCard.vue b/components/report_cards/chemical_probe/EubopenCompoundReportCard.vue
index b3286b7..81f99b9 100644
--- a/components/report_cards/chemical_probe/EubopenCompoundReportCard.vue
+++ b/components/report_cards/chemical_probe/EubopenCompoundReportCard.vue
@@ -3,6 +3,7 @@
     :report-card-structure="reportCardStructure"
     :item-i-d="itemID"
     :store-module-name="storeModuleName"
+    :entity-i-d="entityID"
   />
 </template>
 
@@ -30,6 +31,7 @@ export default {
   data() {
     return {
       storeModuleName: 'probeReportCard',
+      entityID: EntityNames.EubopenCompound.entityID,
     }
   },
   computed: mapState({
diff --git a/components/report_cards/target/TargetReportCard.vue b/components/report_cards/target/TargetReportCard.vue
index 1aed794..623f55a 100644
--- a/components/report_cards/target/TargetReportCard.vue
+++ b/components/report_cards/target/TargetReportCard.vue
@@ -3,6 +3,7 @@
     :report-card-structure="reportCardStructure"
     :item-i-d="itemID"
     :store-module-name="storeModuleName"
+    :entity-i-d="entityID"
   />
 </template>
 
@@ -30,6 +31,7 @@ export default {
   data() {
     return {
       storeModuleName: 'targetReportCard',
+      entityID: EntityNames.EubopenTarget.entityID,
     }
   },
   computed: mapState({
-- 
GitLab