diff options
author | dartcafe <github@dartcafe.de> | 2020-05-02 10:04:39 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-05-02 10:04:39 +0300 |
commit | a0b8cba535418f3388680af82917b600f487bfb6 (patch) | |
tree | 32b29dae09fe86d5e9a5ee1ecec9678b51705a61 /src/js/components/VoteTable/VoteTable.vue | |
parent | 78471e1df3112bd5e1312d661bd4d44c4d5c4985 (diff) |
use @nextcloud/auth
Diffstat (limited to 'src/js/components/VoteTable/VoteTable.vue')
-rw-r--r-- | src/js/components/VoteTable/VoteTable.vue | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/js/components/VoteTable/VoteTable.vue b/src/js/components/VoteTable/VoteTable.vue index 7df576a7..71e0b9de 100644 --- a/src/js/components/VoteTable/VoteTable.vue +++ b/src/js/components/VoteTable/VoteTable.vue @@ -31,11 +31,11 @@ :poll-type="poll.type" /> </div> - <div v-for="(participant) in participants" :key="participant.userId" :class="{currentuser: (participant.userId === currentUser) }"> + <div v-for="(participant) in participants" :key="participant.userId" :class="{currentuser: (participant.userId === acl.userId) }"> <UserDiv :key="participant.userId" class="vote-table__user-column" :disable-menu="true" - :class="{currentuser: (participant.userId === currentUser) }" + :class="{currentuser: (participant.userId === acl.userId) }" :user-id="participant.userId" :display-name="participant.displayName"> <Actions v-if="acl.allowEdit" class="action"> @@ -100,10 +100,6 @@ export default { 'sortedOptions', 'participants', ]), - - currentUser() { - return this.acl.userId - }, }, methods: { |