diff options
| author | Johann150 <johann.galle@protonmail.com> | 2022-06-24 12:03:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-24 19:03:41 +0900 |
| commit | 1c2e2c4b06b088ad0d4d752760b3126a6a9bf017 (patch) | |
| tree | fd6cef447f1029537ea786d0d12235eb9b4110d5 /packages | |
| parent | chore(client): tweak ui (diff) | |
| download | misskey-1c2e2c4b06b088ad0d4d752760b3126a6a9bf017.tar.gz misskey-1c2e2c4b06b088ad0d4d752760b3126a6a9bf017.tar.bz2 misskey-1c2e2c4b06b088ad0d4d752760b3126a6a9bf017.zip | |
fix(client): ask to log in for poll vote (#8883)
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/client/src/components/poll.vue | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/client/src/components/poll.vue b/packages/client/src/components/poll.vue index 171b4a4770..d9ef5970cb 100644 --- a/packages/client/src/components/poll.vue +++ b/packages/client/src/components/poll.vue @@ -24,6 +24,7 @@ <script lang="ts"> import { computed, defineComponent, onUnmounted, ref, toRef } from 'vue'; import { sum } from '@/scripts/array'; +import { pleaseLogin } from '@/scripts/please-login'; import * as os from '@/os'; import { i18n } from '@/i18n'; @@ -75,6 +76,8 @@ export default defineComponent({ } const vote = async (id) => { + pleaseLogin(); + if (props.readOnly || closed.value || isVoted.value) return; const { canceled } = await os.confirm({ |