diff options
author | dartcafe <github@dartcafe.de> | 2022-07-08 21:16:17 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2022-07-08 21:16:17 +0300 |
commit | 932be927fa09951ec9107960577a866e76a2a754 (patch) | |
tree | 34c81a433b7f56c813aa80fff06f656758bcabf3 /src | |
parent | 312d6990f51a5eb68b0b5a6a4427f1165330d0c0 (diff) |
fix avatar
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/js/components/User/UserItem.vue | 9 |
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 }) |