mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 01:30:23 +01:00
なしでも保存できるようにした
This commit is contained in:
parent
41d5afbffb
commit
cf579261b2
1 changed files with 3 additions and 2 deletions
|
@ -13,7 +13,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<template v-else-if="botProtectionForm.savedState.provider === 'turnstile'" #suffix>Turnstile</template>
|
||||
<template v-else-if="botProtectionForm.savedState.provider === 'testcaptcha'" #suffix>testCaptcha</template>
|
||||
<template v-else #suffix>{{ i18n.ts.none }} ({{ i18n.ts.notRecommended }})</template>
|
||||
<template v-if="botProtectionForm.modified.value" #footer>
|
||||
<template #footer>
|
||||
<MkFormFooter :canSaving="canSaving" :form="botProtectionForm"/>
|
||||
</template>
|
||||
|
||||
|
@ -145,7 +145,8 @@ const turnstileResponse = ref<string | null>(null);
|
|||
const testCaptchaResponse = ref<string | null>(null);
|
||||
|
||||
const canSaving = computed((): boolean => {
|
||||
return (botProtectionForm.state.provider === 'hcaptcha' && !!hCaptchaResponse.value) ||
|
||||
return (botProtectionForm.state.provider === null) ||
|
||||
(botProtectionForm.state.provider === 'hcaptcha' && !!hCaptchaResponse.value) ||
|
||||
(botProtectionForm.state.provider === 'mcaptcha' && !!mCaptchaResponse.value) ||
|
||||
(botProtectionForm.state.provider === 'recaptcha' && !!reCaptchaResponse.value) ||
|
||||
(botProtectionForm.state.provider === 'turnstile' && !!turnstileResponse.value) ||
|
||||
|
|
Loading…
Reference in a new issue