Skip to content

Commit

Permalink
Rename dataset click to datalink click
Browse files Browse the repository at this point in the history
  • Loading branch information
akhuoa committed May 2, 2024
1 parent da6eb96 commit b7b4411
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/components/DatasetCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
:dataset-biolucida="biolucidaData"
:category="currentCategory"
@card-clicked="galleryClicked"
@dataset-clicked="galleryDatasetClicked"
@datalink-clicked="galleryDatalinkClicked"
/>
</span>
<div class="card-right">
Expand Down Expand Up @@ -164,8 +164,8 @@ export default {
galleryClicked: function (payload) {
this.propogateCardAction(payload)
},
galleryDatasetClicked: function (payload) {
EventBus.emit('dataset-clicked', payload); // Pass to mapintegratedvuer
galleryDatalinkClicked: function (payload) {
EventBus.emit('datalink-clicked', payload); // Pass to mapintegratedvuer
},
openDataset: function () {
window.open(this.dataLocation, '_blank')
Expand Down
6 changes: 3 additions & 3 deletions src/components/ImageGallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:body-style="bodyStyle"
:shadow="shadow"
@card-clicked="cardClicked"
@dataset-clicked="datasetClicked"
@datalink-clicked="datalinkClicked"
ref="gallery"
/>
</div>
Expand Down Expand Up @@ -117,8 +117,8 @@ export default {
cardClicked: function (payload) {
this.$emit('card-clicked', payload)
},
datasetClicked: function (payload) {
this.$emit('dataset-clicked', payload);
datalinkClicked: function (payload) {
this.$emit('datalink-clicked', payload);
},
createSciCurnchItems: function () {
this.updateS3Bucket(this.entry.s3uri)
Expand Down
4 changes: 2 additions & 2 deletions src/components/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,14 @@ export default {
*/
this.$emit('contextUpdate', payLoad)
})
EventBus.on('dataset-clicked', (payLoad) => {
EventBus.on('datalink-clicked', (payLoad) => {
/**
* This event is emitted
* when the dataset button or dataset image thumbnail
* from the gallery component is clicked.
* @arg payload
*/
this.$emit('dataset-clicked', payLoad);
this.$emit('datalink-clicked', payLoad);
})
},
}
Expand Down

0 comments on commit b7b4411

Please sign in to comment.