From 00ba6fc9c026119b82579870104e9a620e5206c6 Mon Sep 17 00:00:00 2001 From: Haruki Tazoe <40142697+jdkfx@users.noreply.github.com> Date: Tue, 20 Aug 2024 01:56:22 +0900 Subject: [PATCH] =?UTF-8?q?=E8=BE=9E=E6=9B=B8=E3=81=AE=E3=83=AA=E3=82=BB?= =?UTF-8?q?=E3=83=83=E3=83=88=E3=83=9C=E3=82=BF=E3=83=B3=E3=81=AE=E6=8C=99?= =?UTF-8?q?=E5=8B=95=E3=82=92=E4=BF=AE=E6=AD=A3=E3=81=99=E3=82=8B=20(#2233?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialog/DictionaryManageDialog.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Dialog/DictionaryManageDialog.vue b/src/components/Dialog/DictionaryManageDialog.vue index 12682ceada..fb2c1828fd 100644 --- a/src/components/Dialog/DictionaryManageDialog.vue +++ b/src/components/Dialog/DictionaryManageDialog.vue @@ -241,7 +241,7 @@ textColor="display" class="text-no-wrap text-bold q-mr-sm" :disable="uiLocked || !isWordChanged" - @click="resetWord" + @click="resetWord(selectedId)" >リセット { toInitialState(); } }; -const resetWord = async () => { +const resetWord = async (id: string) => { const result = await store.dispatch("SHOW_WARNING_DIALOG", { title: "単語の変更をリセットしますか?", message: "単語の変更は破棄されてリセットされます。", actionName: "リセット", }); if (result === "OK") { + selectedId.value = id; + surface.value = userDict.value[id].surface; + void setYomi(userDict.value[id].yomi, true); + wordPriority.value = userDict.value[id].priority; toWordEditingState(); } };