Skip to content

Commit

Permalink
Merge pull request #108 from akhuoa/feature/sckan-version
Browse files Browse the repository at this point in the history
SCKAN version in connectivity graph
  • Loading branch information
alan-wu authored Jan 30, 2025
2 parents a0bc85c + 0a303b1 commit 440e080
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/components/ConnectivityInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
<connectivity-graph
:entry="entry.featureId[0]"
:mapServer="envVars.FLATMAPAPI_LOCATION"
:sckanVersion="sckanVersion"
@tap-node="onTapNode"
ref="connectivityGraphRef"
/>
Expand Down Expand Up @@ -313,6 +314,7 @@ export default {
timeoutID: undefined,
graphViewLoaded: false,
updatedCopyContent: '',
sckanVersion: '',
}
},
watch: {
Expand Down Expand Up @@ -599,6 +601,7 @@ export default {
},
},
mounted: function () {
this.sckanVersion = this.entry['knowledge-source'];
this.updatedCopyContent = this.getUpdateCopyContent();
EventBus.on('connectivity-graph-error', (errorInfo) => {
this.pushConnectivityError(errorInfo);
Expand Down
5 changes: 3 additions & 2 deletions src/exampleConnectivityInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,5 +285,6 @@ export default {
"Homo sapiens",
"Canis lupus familiaris",
"Domestic Pig"
]
}
],
"knowledge-source": "sckan-2024-03-26-npo",
}

0 comments on commit 440e080

Please sign in to comment.