diff options
author | Christopher Ng <chrng8@gmail.com> | 2021-11-04 01:14:24 +0000 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-11-23 01:35:53 +0000 |
commit | 185da2f25f900ef82a4fd1e6d651bacfb105d8d2 (patch) | |
tree | 6f388b6957377bdd267cc0c5bc5a78cec8d78278 /core/src | |
parent | a33e0a658091139c3a6a63cf86550a3c0b87fdf3 (diff) | |
download | nextcloud-server-185da2f25f900ef82a4fd1e6d651bacfb105d8d2.tar.gz nextcloud-server-185da2f25f900ef82a4fd1e6d651bacfb105d8d2.zip |
Fix wording on profile page
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/views/Profile.vue | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/src/views/Profile.vue b/core/src/views/Profile.vue index d16a3661b22..115d9483275 100644 --- a/core/src/views/Profile.vue +++ b/core/src/views/Profile.vue @@ -141,8 +141,8 @@ title="" fill-color="var(--color-text-maxcontrast)" :size="60" /> - <h3>{{ displayname || userId }} {{ t('core', 'hasn\'t added any info yet') }}</h3> - <p>{{ t('core', 'The headline and about section will show up here') }}</p> + <h3>{{ emptyProfileMessage }}</h3> + <p>{{ t('core', 'The headline and about sections will show up here') }}</p> </div> </template> </div> @@ -255,6 +255,12 @@ export default { // For some reason the returned string has prepended whitespace return getComputedStyle(document.body).getPropertyValue('--color-main-background').trim() }, + + emptyProfileMessage() { + return this.isCurrentUser + ? t('core', 'You haven\'t added any info yet') + : t('core', '{user} hasn\'t added any info yet', { user: (this.displayname || this.userId) }) + }, }, mounted() { |