Skip to content

Commit

Permalink
Merge pull request #1188 from dpc-sdp/bugfix/R20-1519-hide-topic-date
Browse files Browse the repository at this point in the history
[R20-1519] Hide page updated date for topic/tag/search listing pages
  • Loading branch information
waitingallday authored May 27, 2024
2 parents bc78110 + 618afec commit 720c381
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ interface Props {
searchResultsMappingFn?: (item: any) => MappedSearchResult<any>
contentPage: TideContentPage
site: TideSiteData
showUpdatedDate?: boolean
}
const props = withDefaults(defineProps<Props>(), {
Expand Down Expand Up @@ -98,7 +99,8 @@ const props = withDefaults(defineProps<Props>(), {
}
}
},
sortOptions: () => []
sortOptions: () => [],
showUpdatedDate: false
})
const emit = defineEmits<{
Expand Down Expand Up @@ -349,7 +351,9 @@ watch(
:background="contentPage.background"
:pageTitle="contentPage.title"
:pageLanguage="contentPage.lang"
:updatedDate="contentPage.changed || contentPage.created"
:updatedDate="
showUpdatedDate ? contentPage.changed || contentPage.created : null
"
:showContentRating="contentPage.showContentRating"
>
<template #breadcrumbs>
Expand Down

0 comments on commit 720c381

Please sign in to comment.