Skip to content

Commit

Permalink
Merge pull request #29544 from nextcloud/fix/profile-page-wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Pytal authored Nov 23, 2021
2 parents f7ab878 + 6a8b2d8 commit 7182a52
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/js/dist/profile.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/profile.js.map

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions core/src/views/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 7182a52

Please sign in to comment.