diff options
author | Christopher Ng <chrng8@gmail.com> | 2021-11-04 01:14:24 +0000 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2021-11-23 00:23:56 +0000 |
commit | 6a8b2d86fe9c6764b23c4460cdc37a1c34414824 (patch) | |
tree | 8291ae9c88ea43bf9cb2c30f121ddee395e609d2 /core/src | |
parent | 68fecc1d9f6810e815c6a6ba80d4c13a0bde98b8 (diff) | |
download | nextcloud-server-6a8b2d86fe9c6764b23c4460cdc37a1c34414824.tar.gz nextcloud-server-6a8b2d86fe9c6764b23c4460cdc37a1c34414824.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() { |