mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Fix wording on profile page
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
68fecc1d9f
commit
6a8b2d86fe
3 changed files with 11 additions and 5 deletions
4
core/js/dist/profile.js
vendored
4
core/js/dist/profile.js
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/profile.js.map
vendored
2
core/js/dist/profile.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue