Skip to content

Commit bc9420a

Browse files
authored
add: merge 0.22.1 (#2434)
2 parents 57f2583 + 134e76c commit bc9420a

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

public/qAndA.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Windows/Mac/Linux 搭載の PC に対応しています。
1010

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

1515
#### GPU 版

public/updateInfos.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
[
2+
{
3+
"version": "0.22.1",
4+
"descriptions": ["バグ修正"],
5+
"contributors": ["Hiroshiba", "sevenc-nanashi"]
6+
},
27
{
38
"version": "0.22.0",
49
"descriptions": [

src/components/Dialog/DictionaryEditWordDialog.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,21 +132,21 @@
132132
<div class="row q-px-md save-delete-reset-buttons">
133133
<QSpace />
134134
<QBtn
135-
v-show="!!selectedId"
136135
outline
137136
textColor="display"
138137
class="text-no-wrap text-bold q-mr-sm"
139-
:disable="uiLocked || !isWordChanged"
140-
@click="resetWord(selectedId)"
141-
>リセット</QBtn
138+
:disable="uiLocked"
139+
@click="discardOrNotDialog(cancel)"
140+
>キャンセル</QBtn
142141
>
143142
<QBtn
143+
v-show="!!selectedId"
144144
outline
145145
textColor="display"
146146
class="text-no-wrap text-bold q-mr-sm"
147-
:disable="uiLocked"
148-
@click="discardOrNotDialog(cancel)"
149-
>キャンセル</QBtn
147+
:disable="uiLocked || !isWordChanged"
148+
@click="resetWord(selectedId)"
149+
>リセット</QBtn
150150
>
151151
<QBtn
152152
outline
@@ -330,6 +330,8 @@ const resetWord = async (id: string) => {
330330
title: "単語の変更をリセットしますか?",
331331
message: "単語の変更は破棄されてリセットされます。",
332332
actionName: "リセットする",
333+
isWarningColorButton: true,
334+
cancel: "リセットしない",
333335
});
334336
if (result === "OK") {
335337
selectedId.value = id;

src/components/Dialog/DictionaryManageDialog.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ const deleteWord = async () => {
343343
message: "削除された単語は元に戻せません。",
344344
actionName: "削除する",
345345
isWarningColorButton: true,
346+
cancel: "削除しない",
346347
});
347348
if (result === "OK") {
348349
try {
@@ -362,13 +363,13 @@ const deleteWord = async () => {
362363
toInitialState();
363364
}
364365
};
365-
366366
const discardOrNotDialog = async (okCallback: () => void) => {
367367
if (isWordChanged.value) {
368368
const result = await store.actions.SHOW_WARNING_DIALOG({
369369
title: "単語の追加・変更を破棄しますか?",
370-
message: "破棄すると、単語の追加・変更はリセットされます。",
370+
message: "変更を破棄すると、単語の追加・変更はリセットされます。",
371371
actionName: "破棄する",
372+
cancel: "破棄しない",
372373
isWarningColorButton: true,
373374
});
374375
if (result === "OK") {

tests/e2e/browser/辞書ダイアログ.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ test("「設定」→「読み方&アクセント辞書」で「読み方&
121121
await page.waitForTimeout(100);
122122
await getNewestQuasarDialog(page)
123123
.getByRole("button")
124-
.filter({ hasText: "削除" })
124+
.filter({ hasText: "削除する" })
125125
.click();
126126
await page.waitForTimeout(100);
127127

0 commit comments

Comments
 (0)