Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-07-08 21:16:17 +0300
committerdartcafe <github@dartcafe.de>2022-07-08 21:16:17 +0300
commit932be927fa09951ec9107960577a866e76a2a754 (patch)
tree34c81a433b7f56c813aa80fff06f656758bcabf3 /src/js/components
parent312d6990f51a5eb68b0b5a6a4427f1165330d0c0 (diff)
fix avatar
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components')
-rw-r--r--src/js/components/User/UserItem.vue9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/js/components/User/UserItem.vue b/src/js/components/User/UserItem.vue
index 05a576eb..e8705a37 100644
--- a/src/js/components/User/UserItem.vue
+++ b/src/js/components/User/UserItem.vue
@@ -30,7 +30,7 @@
:size="iconSize"
:icon-class="avatarIcon"
:show-user-status="showUserStatus"
- :user="userId"
+ :user="avatarUserId"
:display-name="name"
:is-no-user="isNoUser" />
@@ -172,6 +172,13 @@ export default {
},
+ avatarUserId() {
+ if (this.isGuestComputed) {
+ return this.name
+ }
+ return this.userId
+ },
+
displayEmailAddress() {
if (this.type === 'public' && this.userId !== 'addPublic') {
return t('polls', 'Token: {token}', { token: this.userId })