Change viewName to prop

old-stable24
Varun Patil 2022-10-28 09:08:59 -07:00
parent 96f0a129b9
commit aeeae353cc
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
<!-- Show dynamic top matter, name of the view --> <!-- Show dynamic top matter, name of the view -->
<div class="recycler-before" ref="recyclerBefore"> <div class="recycler-before" ref="recyclerBefore">
<div class="text" v-show="!$refs.topmatter.type && list.length > 0"> <div class="text" v-show="!$refs.topmatter.type && list.length > 0">
{{ getViewName() }} {{ viewName }}
</div> </div>
<OnThisDay v-if="$route.name === 'timeline'" <OnThisDay v-if="$route.name === 'timeline'"
@ -499,7 +499,7 @@ export default class Timeline extends Mixins(GlobalMixin, UserConfig) {
} }
/** Get view name for dynamic top matter */ /** Get view name for dynamic top matter */
getViewName() { get viewName() {
switch (this.$route.name) { switch (this.$route.name) {
case 'timeline': return this.t('memories', 'Your Timeline'); case 'timeline': return this.t('memories', 'Your Timeline');
case 'favorites': return this.t('memories', 'Favorites'); case 'favorites': return this.t('memories', 'Favorites');