Skip to content

Commit

Permalink
made images links in tools&resources
Browse files Browse the repository at this point in the history
  • Loading branch information
ignapas committed Aug 13, 2024
1 parent fecf3b1 commit 4f434aa
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion components/Resources/ResourcesSearchResults.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,18 @@
class="resources-search-results__items"
>
<div class="resources-search-results__items--image">
<img v-show="data.fields.logo" :src="getBannerImage(data)" />
<router-link
v-if="data.fields.requiresDetailsPage"
:to="{
name: 'resources-resourceId',
params: { resourceId: data.sys.id }
}"
>
<img v-show="data.fields.logo" :src="getBannerImage(data)" />
</router-link>
<a v-else :href="data.fields.url" target="blank">
<img v-show="data.fields.logo" :src="getBannerImage(data)" />
</a>
</div>
<div class="resources-search-results__items--content">
<router-link
Expand Down

0 comments on commit 4f434aa

Please sign in to comment.