mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-11 08:01:03 -07:00
fix(client): ask to log in for poll vote (#8883)
This commit is contained in:
parent
b3fe2b44b0
commit
f73327f6f8
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { computed, defineComponent, onUnmounted, ref, toRef } from 'vue';
|
import { computed, defineComponent, onUnmounted, ref, toRef } from 'vue';
|
||||||
import { sum } from '@/scripts/array';
|
import { sum } from '@/scripts/array';
|
||||||
|
import { pleaseLogin } from '@/scripts/please-login';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
|
@ -75,6 +76,8 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
const vote = async (id) => {
|
const vote = async (id) => {
|
||||||
|
pleaseLogin();
|
||||||
|
|
||||||
if (props.readOnly || closed.value || isVoted.value) return;
|
if (props.readOnly || closed.value || isVoted.value) return;
|
||||||
|
|
||||||
const { canceled } = await os.confirm({
|
const { canceled } = await os.confirm({
|
||||||
|
|
Loading…
Reference in a new issue