Skip to content

Commit

Permalink
add: merge 0.22.1 (#2434)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba authored Dec 24, 2024
2 parents 57f2583 + 134e76c commit bc9420a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion public/qAndA.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Windows/Mac/Linux 搭載の PC に対応しています。

※Windows:Windows 10・Windows 11
※Mac:macOS 12(Monterey)以降
※Mac:macOS 13(Ventura)以降
※Linux:Ubuntu 20.04・Ubuntu 22.04

#### GPU 版
Expand Down
5 changes: 5 additions & 0 deletions public/updateInfos.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"version": "0.22.1",
"descriptions": ["バグ修正"],
"contributors": ["Hiroshiba", "sevenc-nanashi"]
},
{
"version": "0.22.0",
"descriptions": [
Expand Down
16 changes: 9 additions & 7 deletions src/components/Dialog/DictionaryEditWordDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,21 +132,21 @@
<div class="row q-px-md save-delete-reset-buttons">
<QSpace />
<QBtn
v-show="!!selectedId"
outline
textColor="display"
class="text-no-wrap text-bold q-mr-sm"
:disable="uiLocked || !isWordChanged"
@click="resetWord(selectedId)"
>リセット</QBtn
:disable="uiLocked"
@click="discardOrNotDialog(cancel)"
>キャンセル</QBtn
>
<QBtn
v-show="!!selectedId"
outline
textColor="display"
class="text-no-wrap text-bold q-mr-sm"
:disable="uiLocked"
@click="discardOrNotDialog(cancel)"
>キャンセル</QBtn
:disable="uiLocked || !isWordChanged"
@click="resetWord(selectedId)"
>リセット</QBtn
>
<QBtn
outline
Expand Down Expand Up @@ -330,6 +330,8 @@ const resetWord = async (id: string) => {
title: "単語の変更をリセットしますか?",
message: "単語の変更は破棄されてリセットされます。",
actionName: "リセットする",
isWarningColorButton: true,
cancel: "リセットしない",
});
if (result === "OK") {
selectedId.value = id;
Expand Down
5 changes: 3 additions & 2 deletions src/components/Dialog/DictionaryManageDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ const deleteWord = async () => {
message: "削除された単語は元に戻せません。",
actionName: "削除する",
isWarningColorButton: true,
cancel: "削除しない",
});
if (result === "OK") {
try {
Expand All @@ -362,13 +363,13 @@ const deleteWord = async () => {
toInitialState();
}
};
const discardOrNotDialog = async (okCallback: () => void) => {
if (isWordChanged.value) {
const result = await store.actions.SHOW_WARNING_DIALOG({
title: "単語の追加・変更を破棄しますか?",
message: "破棄すると、単語の追加・変更はリセットされます。",
message: "変更を破棄すると、単語の追加・変更はリセットされます。",
actionName: "破棄する",
cancel: "破棄しない",
isWarningColorButton: true,
});
if (result === "OK") {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/browser/辞書ダイアログ.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ test("「設定」→「読み方&アクセント辞書」で「読み方&
await page.waitForTimeout(100);
await getNewestQuasarDialog(page)
.getByRole("button")
.filter({ hasText: "削除" })
.filter({ hasText: "削除する" })
.click();
await page.waitForTimeout(100);

Expand Down

0 comments on commit bc9420a

Please sign in to comment.