Fix handling of the translation string

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-03-23 17:11:07 +01:00
parent 325f29ffb6
commit 15bfeed023
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -23,9 +23,7 @@
<!-- Guest username setting form -->
<form class="username-form"
@submit.prevent="handleChooseUserName">
<h3>
{{ t('spreed', 'Display name: ') }} <strong>{{ actorDisplayName ? actorDisplayName : t('spreed', 'Guest') }}</strong>
</h3>
<h3 v-html="displayNameLabel" />
<Button @click.prevent="handleEditUsername">
{{ t('spreed', 'Edit') }}
<template #icon>
@ -81,6 +79,11 @@ export default {
actorDisplayName() {
return this.$store.getters.getDisplayName()
},
displayNameLabel() {
return t('spreed', 'Display name: <strong>{name}</strong>', {
name: this.actorDisplayName ? this.actorDisplayName : t('spreed', 'Guest'),
})
},
actorId() {
return this.$store.getters.getActorId()
},