Skip to content

Commit

Permalink
chore: pass ignore of UserClickedAResult by prop
Browse files Browse the repository at this point in the history
  • Loading branch information
CachedaCodes committed Jun 14, 2023
1 parent 3a485be commit e1de315
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/search/display-click-provider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
feature: {
type: String as PropType<ResultFeature>,
required: true
},
ignoreResultClickEvent: {
type: Boolean,
default: true
}
},
setup(props) {
Expand All @@ -28,10 +32,12 @@
provide('resultClickExtraEvents', ['UserClickedADisplayResult']);
provide('resultLinkMetadataPerEvent', {
UserClickedAResult: {
ignoreInModules: ['tagging']
},
UserClickedADisplayResult: displayClickMetadata.value
UserClickedADisplayResult: displayClickMetadata.value,
...(props.ignoreResultClickEvent && {
UserClickedAResult: {
ignoreInModules: ['tagging']
}
})
});
}
});
Expand Down

0 comments on commit e1de315

Please sign in to comment.