fix(client): ask to log in for poll vote (#8883)

This commit is contained in:
Johann150 2022-06-24 12:03:41 +02:00 committed by GitHub
parent 55c22eec8b
commit 1c2e2c4b06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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({