Skip to content

Commit

Permalink
Merge pull request #205 from traP-jp/fix/notifySetting
Browse files Browse the repository at this point in the history
changed v-bind to v-model for mutual binding
  • Loading branch information
Pugma authored Aug 9, 2024
2 parents 0e1e7ab + cf79d78 commit 1f7a57f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/components/NotifySwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Icon } from '@iconify/vue'
defineProps<{ title: string }>()
const model = defineModel<boolean>({ required: true })
const model = defineModel<boolean>('notify', { required: true })
</script>

<template>
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/WordAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const update = () => {
<div>
<h3>通知設定</h3>
<div class="settings">
<NotifySwitch :model-value="newBotNotify" title="Botの投稿" />
<NotifySwitch :model-value="newSelfNotify" title="自分の投稿" />
<NotifySwitch v-model:notify="newBotNotify" title="Botの投稿" />
<NotifySwitch v-model:notify="newSelfNotify" title="自分の投稿" />
</div>
</div>
<div class="registerButton mb-16 mt-4">
Expand Down

0 comments on commit 1f7a57f

Please sign in to comment.