Show the username in the title of profile-related pages

page-titles-2
Gabriel de Perthuis 2022-11-20 12:33:54 +01:00
rodzic bc664e5ca1
commit 68865b955b
5 zmienionych plików z 35 dodań i 10 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
<Title name="{intl.followers}" />
<Title name="{profileName} {intl.followers}" />
<LazyPage {pageComponent} {params} />
@ -15,6 +15,11 @@
},
data: () => ({
pageComponent
})
}),
computed: {
profileName: ({ $currentAccountProfile }) => {
return ($currentAccountProfile && ('@' + $currentAccountProfile.acct)) || ''
}
}
}
</script>

Wyświetl plik

@ -1,4 +1,4 @@
<Title name="{intl.follows}" />
<Title name="{profileName} {intl.follows}" />
<LazyPage {pageComponent} {params} />
@ -15,6 +15,11 @@
},
data: () => ({
pageComponent
})
}),
computed: {
profileName: ({ $currentAccountProfile }) => {
return ($currentAccountProfile && ('@' + $currentAccountProfile.acct)) || ''
}
}
}
</script>

Wyświetl plik

@ -1,4 +1,4 @@
<Title name="{intl.profile}" />
<Title name="{profileName} {intl.profile}" />
<LazyPage {pageComponent} {params} />
@ -15,6 +15,11 @@
},
data: () => ({
pageComponent
})
}),
computed: {
profileName: ({ $currentAccountProfile }) => {
return ($currentAccountProfile && ('@' + $currentAccountProfile.acct)) || ''
}
}
}
</script>

Wyświetl plik

@ -1,4 +1,4 @@
<Title name="{intl.profileWithMedia}" />
<Title name="{profileName} {intl.profileWithMedia}" />
<LazyPage {pageComponent} {params} />
@ -15,6 +15,11 @@
},
data: () => ({
pageComponent
})
}),
computed: {
profileName: ({ $currentAccountProfile }) => {
return ($currentAccountProfile && ('@' + $currentAccountProfile.acct)) || ''
}
}
}
</script>

Wyświetl plik

@ -1,4 +1,4 @@
<Title name="{intl.profileWithReplies}" />
<Title name="{profileName} {intl.profileWithReplies}" />
<LazyPage {pageComponent} {params} />
@ -15,6 +15,11 @@
},
data: () => ({
pageComponent
})
}),
computed: {
profileName: ({ $currentAccountProfile }) => {
return ($currentAccountProfile && ('@' + $currentAccountProfile.acct)) || ''
}
}
}
</script>