Skip to content

Commit

Permalink
category link working
Browse files Browse the repository at this point in the history
  • Loading branch information
jendiamond committed Oct 23, 2024
1 parent c9e593f commit 282e9f2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-components/CardMeta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const classes = computed(() => {
<template>
<div :class="classes">
<div class="linked-category">
<slot name="linked-category-slot" />
<slot name="linkedcategoryslot" />
</div>
<div
Expand Down
35 changes: 35 additions & 0 deletions src/stories/CardMeta.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { computed, onBeforeUnmount, onMounted } from 'vue'
import CardMeta from '@/lib-components/CardMeta'
import ButtonDropdown from '@/lib-components/ButtonDropdown.vue'
import SmartLink from '@/lib-components/SmartLink.vue'
import { useGlobalStore } from '@/stores/GlobalStore'

// Storybook default settings
Expand Down Expand Up @@ -211,6 +212,7 @@ const mockSocialList = {
},
],
}

export function FTVAArticleDetailWShareButton() {
return {
data() {
Expand Down Expand Up @@ -257,3 +259,36 @@ export function FTVAArticleDetailWShareButton() {
`,
}
}

export function FtvaOnlyCategoryAndTitle2() {
return {
data() {
return {
ftvaEventSeries: {
title: 'Step Up 2 - The Streets (2008)',
to: '/series/step-up-series'
}
}
},
provide() {
return {
theme: computed(() => 'ftva'),
}
},
components: { CardMeta, SmartLink },
template: `
<card-meta
:title="ftvaEventSeries.title"
>
<template v-slot:linkedcategoryslot>
<smart-link
:to="ftvaEventSeries.to"
>
{{ ftvaEventSeries.title }}
</smart-link>
</template>
</card-meta>
`,
}
}

0 comments on commit 282e9f2

Please sign in to comment.