Skip to content

Commit 7537e3a

Browse files
Pytalnextcloud-command
authored andcommitted
Fix wording on profile page
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent e1c2c13 commit 7537e3a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

core/js/dist/profile.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/js/dist/profile.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/views/Profile.vue

+8-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@
141141
title=""
142142
fill-color="var(--color-text-maxcontrast)"
143143
:size="60" />
144-
<h3>{{ displayname || userId }} {{ t('core', 'hasn\'t added any info yet') }}</h3>
145-
<p>{{ t('core', 'The headline and about section will show up here') }}</p>
144+
<h3>{{ emptyProfileMessage }}</h3>
145+
<p>{{ t('core', 'The headline and about sections will show up here') }}</p>
146146
</div>
147147
</template>
148148
</div>
@@ -255,6 +255,12 @@ export default {
255255
// For some reason the returned string has prepended whitespace
256256
return getComputedStyle(document.body).getPropertyValue('--color-main-background').trim()
257257
},
258+
259+
emptyProfileMessage() {
260+
return this.isCurrentUser
261+
? t('core', 'You haven\'t added any info yet')
262+
: t('core', '{user} hasn\'t added any info yet', { user: (this.displayname || this.userId) })
263+
},
258264
},
259265

260266
mounted() {

0 commit comments

Comments
 (0)