Skip to content

Commit

Permalink
fix: can only refresh when poll is not expired
Browse files Browse the repository at this point in the history
  • Loading branch information
Cl0v1s committed Jan 27, 2025
1 parent 5505dc0 commit 75999c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elk/components/status/StatusPoll.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const votersCount = computed(() => poll.votersCount ?? poll.votesCount ?? 0)
</CommonTooltip>
</div>
</div>
<div>
<div v-if="!poll.expired">
<button whitespace-nowrap flex gap-1 items-center hover:text-primary @click="refresh">
<div text-xs :class="loading ? 'animate-spin' : ''" i-ri:loop-right-line />
{{ $t('status.poll.update') }}
Expand Down

0 comments on commit 75999c1

Please sign in to comment.