Skip to content

Commit

Permalink
Merge pull request #109 from akhuoa/feature/connections-with-evidence
Browse files Browse the repository at this point in the history
Display connections with evidence from published sources
  • Loading branch information
alan-wu authored Feb 12, 2025
2 parents 440e080 + ab3a5c3 commit 8dd4acf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/ConnectivityInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@
</div>

<div class="content-container content-container-references" v-if="resources.length">
<external-resource-card :resources="resources" @references-loaded="onReferencesLoaded"></external-resource-card>
<external-resource-card
:resources="resources"
@references-loaded="onReferencesLoaded"
@show-reference-connectivities="onShowReferenceConnectivities"
></external-resource-card>
</div>
</div>
</template>
Expand Down Expand Up @@ -426,6 +430,9 @@ export default {
const name = data.map(t => t.label).join(', ');
this.toggleConnectivityTooltip(name, {show: true});
},
onShowReferenceConnectivities: function (refSource) {
this.$emit('show-reference-connectivities', refSource);
},
onReferencesLoaded: function (references) {
this.updatedCopyContent = this.getUpdateCopyContent(references);
},
Expand Down
8 changes: 8 additions & 0 deletions src/components/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
:envVars="envVars"
:ref="'connectivityTab_' + tab.id"
@show-connectivity="showConnectivity"
@show-reference-connectivities="onShowReferenceConnectivities"
@connectivity-component-click="onConnectivityComponentClick"
/>
</template>
Expand Down Expand Up @@ -188,6 +189,13 @@ export default {
showConnectivity: function (featureIds) {
this.$emit('show-connectivity', featureIds);
},
/**
* This event is emitted when the show related connectivities button in reference is clicked.
* @param refSource
*/
onShowReferenceConnectivities: function (refSource) {
this.$emit('show-reference-connectivities', refSource);
},
/**
* This function is triggered after a connectivity component is clicked.
* @arg data
Expand Down

0 comments on commit 8dd4acf

Please sign in to comment.