Skip to content

Commit

Permalink
fix(RecentPagesWidget): Change title for landing page
Browse files Browse the repository at this point in the history
Our landing page doesn't have a title, so let's just reference it as
"Landing page".

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Aug 2, 2023
1 parent b67974f commit fe7b58a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/components/Page/LandingPageWidgets/RecentPageTile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</template>
</div>
<div class="recent-page-tile__title">
{{ page.title }}
{{ title }}
</div>
<LastUserBubble :last-user-id="page.lastUserId"
:last-user-display-name="page.lastUserDisplayName"
Expand Down Expand Up @@ -41,6 +41,12 @@ export default {
...mapGetters([
'pagePath',
]),
title() {
return this.page.title === 'Readme'
? t('collectives', 'Landing page')
: this.page.title
},
},
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Page/TextEditor.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<WidgetHeading v-if="isLandingPage"
:title="t('collectives', 'Description')"
:title="t('collectives', 'Landing page')"
class="text-container-heading" />
<div v-show="showRichText"
id="text-container"
Expand Down

0 comments on commit fe7b58a

Please sign in to comment.