kopia lustrzana https://github.com/nolanlawson/pinafore
Show the username in the title of profile-related pages
rodzic
bc664e5ca1
commit
68865b955b
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue