diff options
| author | おさむのひと <46447427+samunohito@users.noreply.github.com> | 2025-01-14 19:57:58 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-14 10:57:58 +0000 |
| commit | 64501c69a10323067dee739790b5a4fc5104e50d (patch) | |
| tree | 7ab362a252624592e70e5b9a5d4977d4bde3b05c /packages/frontend/src/components/MkFormFooter.vue | |
| parent | ApPersonServiceとApNoteServiceのuri <-> url比較を緩和 (#15233) (diff) | |
| download | misskey-64501c69a10323067dee739790b5a4fc5104e50d.tar.gz misskey-64501c69a10323067dee739790b5a4fc5104e50d.tar.bz2 misskey-64501c69a10323067dee739790b5a4fc5104e50d.zip | |
feat(frontend): Botプロテクションの設定変更時は実際に検証を通過しないと保存できないようにする (#15151)
* feat(frontend): CAPTCHAの設定変更時は実際に検証を通過しないと保存できないようにする
* なしでも保存できるようにした
* fix CHANGELOG.md
* フォームが増殖するのを修正
* add comment
* add server-side verify
* fix ci
* fix
* fix
* fix i18n
* add current.ts
* fix text
* fix
* regenerate locales
* fix MkFormFooter.vue
---------
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/src/components/MkFormFooter.vue')
| -rw-r--r-- | packages/frontend/src/components/MkFormFooter.vue | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/frontend/src/components/MkFormFooter.vue b/packages/frontend/src/components/MkFormFooter.vue index f409f6ce50..96214a9542 100644 --- a/packages/frontend/src/components/MkFormFooter.vue +++ b/packages/frontend/src/components/MkFormFooter.vue @@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only <div :class="$style.text">{{ i18n.tsx.thereAreNChanges({ n: form.modifiedCount.value }) }}</div> <div style="margin-left: auto;" class="_buttons"> <MkButton danger rounded @click="form.discard"><i class="ti ti-x"></i> {{ i18n.ts.discard }}</MkButton> - <MkButton primary rounded @click="form.save"><i class="ti ti-check"></i> {{ i18n.ts.save }}</MkButton> + <MkButton primary rounded :disabled="!canSaving" @click="form.save"><i class="ti ti-check"></i> {{ i18n.ts.save }}</MkButton> </div> </div> </template> @@ -18,7 +18,7 @@ import { } from 'vue'; import MkButton from './MkButton.vue'; import { i18n } from '@/i18n.js'; -const props = defineProps<{ +const props = withDefaults(defineProps<{ form: { modifiedCount: { value: number; @@ -26,7 +26,10 @@ const props = defineProps<{ discard: () => void; save: () => void; }; -}>(); + canSaving?: boolean; +}>(), { + canSaving: true, +}); </script> <style lang="scss" module> |