diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-10 11:27:07 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-10 11:27:07 +0900 |
| commit | b2007438451e0022044888af663ce361b23ec45f (patch) | |
| tree | 4fac5f34c9e0aed023eabe58f9bd81dda0c776b5 /packages/frontend/src/components/MkPostForm.vue | |
| parent | refactor(frontend): rename pizzax fields (diff) | |
| download | misskey-b2007438451e0022044888af663ce361b23ec45f.tar.gz misskey-b2007438451e0022044888af663ce361b23ec45f.tar.bz2 misskey-b2007438451e0022044888af663ce361b23ec45f.zip | |
refactor(frontend): rename store.set -> store.commit
Diffstat (limited to 'packages/frontend/src/components/MkPostForm.vue')
| -rw-r--r-- | packages/frontend/src/components/MkPostForm.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 8dbb2a80d6..6a72663157 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -179,7 +179,7 @@ const useCw = ref<boolean>(!!props.initialCw); const showPreview = ref(store.s.showPreview); watch(showPreview, () => store.set('showPreview', showPreview.value)); const showAddMfmFunction = ref(prefer.s.enableQuickAddMfmFunction); -watch(showAddMfmFunction, () => prefer.set('enableQuickAddMfmFunction', showAddMfmFunction.value)); +watch(showAddMfmFunction, () => prefer.commit('enableQuickAddMfmFunction', showAddMfmFunction.value)); const cw = ref<string | null>(props.initialCw ?? null); const localOnly = ref(props.initialLocalOnly ?? (prefer.s.rememberNoteVisibility ? store.s.localOnly : prefer.s.defaultNoteLocalOnly)); const visibility = ref(props.initialVisibility ?? (prefer.s.rememberNoteVisibility ? store.s.visibility : prefer.s.defaultNoteVisibility)); |