Skip to content

Commit

Permalink
Fix wording on profile page
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Nov 4, 2021
1 parent b453fea commit 8d28c2c
Showing 1 changed file with 8 additions and 2 deletions.
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')
: (this.displayname || this.userId) + ' ' + t('core', 'hasn\'t added any info yet')
},
},
mounted() {
Expand Down

0 comments on commit 8d28c2c

Please sign in to comment.