From f20fb5b3622932a1fb64530c1f7ecc57757962a1 Mon Sep 17 00:00:00 2001 From: "saito.k" Date: Wed, 28 Jun 2023 08:47:23 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=20188:=20=E5=87=A6=E7=90=86?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E6=99=82=E3=80=81=E3=82=B9=E3=83=8A=E3=83=83?= =?UTF-8?q?=E3=82=AF=E3=83=90=E3=83=BC=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [Task2088: 処理成功時、スナックバーを表示する](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2088) - タイピスト割り当て変更処理の成功時、成功メッセージを表示する - 他画面に同様の文言が存在していたため、共通のメッセージとして位置づけを変更 - 同様の文言を表示していた箇所のメッセージ変数名を修正 ## レビューポイント ## UIの変更 - https://ndstokyo.sharepoint.com/:f:/r/sites/Piranha/Shared%20Documents/General/OMDS/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88/Task2088?csf=1&web=1&e=g2r2ca ## 動作確認状況 - ローカルで確認 ## 補足 - 相談、参考資料などがあれば --- dictation_client/src/features/dictation/operations.ts | 7 +++++++ .../src/features/license/licenseOrder/operations.ts | 4 +--- dictation_client/src/translation/de.json | 4 ++-- dictation_client/src/translation/en.json | 4 ++-- dictation_client/src/translation/es.json | 4 ++-- dictation_client/src/translation/fr.json | 4 ++-- 6 files changed, 16 insertions(+), 11 deletions(-) diff --git a/dictation_client/src/features/dictation/operations.ts b/dictation_client/src/features/dictation/operations.ts index 18963cc..4dccf91 100644 --- a/dictation_client/src/features/dictation/operations.ts +++ b/dictation_client/src/features/dictation/operations.ts @@ -275,6 +275,13 @@ export const updateAssigneeAsync = createAsyncThunk< headers: { authorization: `Bearer ${accessToken}` }, } ); + + thunkApi.dispatch( + openSnackbar({ + level: "info", + message: getTranslationID("common.message.success"), + }) + ); return {}; } catch (e) { // e ⇒ errorObjectに変換" diff --git a/dictation_client/src/features/license/licenseOrder/operations.ts b/dictation_client/src/features/license/licenseOrder/operations.ts index 77d97d9..0d39ee5 100644 --- a/dictation_client/src/features/license/licenseOrder/operations.ts +++ b/dictation_client/src/features/license/licenseOrder/operations.ts @@ -44,9 +44,7 @@ export const orderLicenseAsync = createAsyncThunk< thunkApi.dispatch( openSnackbar({ level: "info", - message: getTranslationID( - "licenseOrderPage.message.createOrderSuccess" - ), + message: getTranslationID("common.message.success"), }) ); return {}; diff --git a/dictation_client/src/translation/de.json b/dictation_client/src/translation/de.json index 7a3e71d..5fa9026 100644 --- a/dictation_client/src/translation/de.json +++ b/dictation_client/src/translation/de.json @@ -6,7 +6,8 @@ "emailIncorrectError": "(de)Error Message", "internalServerError": "(de)処理に失敗しました。時間をおいて再実行しても解決しない場合はシステム管理者にお問い合わせください。", "listEmpty": "(de)検索結果が0件です。", - "dialogConfirm": "(de)操作を実行しますか?" + "dialogConfirm": "(de)操作を実行しますか?", + "success": "(de)処理に成功しました。" }, "label": { "cancel": "(de)Cancel", @@ -160,7 +161,6 @@ "poNumberIncorrectError": "(de)PO Numberの形式が不正です。PO Numberは半角英数字(大文字)のみ入力可能です。", "newOrderIncorrectError": "(de)New Orderには1以上の数字を入力してください。", "confirmOrder": "(de)注文を行いますか?", - "createOrderSuccess": "(de)処理に成功しました。", "poNumberConflictError": "(de)既に同じPO Numberで注文済みもしくは発行済みの注文が存在しています。他のPO Numberで注文してください。" }, "label": { diff --git a/dictation_client/src/translation/en.json b/dictation_client/src/translation/en.json index b356107..6e4e1b1 100644 --- a/dictation_client/src/translation/en.json +++ b/dictation_client/src/translation/en.json @@ -6,7 +6,8 @@ "emailIncorrectError": "Error Message", "internalServerError": "処理に失敗しました。時間をおいて再実行しても解決しない場合はシステム管理者にお問い合わせください。", "listEmpty": "検索結果が0件です。", - "dialogConfirm": "操作を実行しますか?" + "dialogConfirm": "操作を実行しますか?", + "success": "処理に成功しました。" }, "label": { "cancel": "Cancel", @@ -160,7 +161,6 @@ "poNumberIncorrectError": "PO Numberの形式が不正です。PO Numberは半角英数字(大文字)のみ入力可能です。", "newOrderIncorrectError": "New Orderには1以上の数字を入力してください。", "confirmOrder": "注文を行いますか?", - "createOrderSuccess": "処理に成功しました。", "poNumberConflictError": "既に同じPO Numberで注文済みもしくは発行済みの注文が存在しています。他のPO Numberで注文してください。" }, "label": { diff --git a/dictation_client/src/translation/es.json b/dictation_client/src/translation/es.json index 5507f7a..91a2ab8 100644 --- a/dictation_client/src/translation/es.json +++ b/dictation_client/src/translation/es.json @@ -6,7 +6,8 @@ "emailIncorrectError": "(es)Error Message", "internalServerError": "(es)処理に失敗しました。時間をおいて再実行しても解決しない場合はシステム管理者にお問い合わせください。", "listEmpty": "(es)検索結果が0件です。", - "dialogConfirm": "(es)操作を実行しますか?" + "dialogConfirm": "(es)操作を実行しますか?", + "success": "(es)処理に成功しました。" }, "label": { "cancel": "(es)Cancel", @@ -160,7 +161,6 @@ "poNumberIncorrectError": "(es)PO Numberの形式が不正です。PO Numberは半角英数字(大文字)のみ入力可能です。", "newOrderIncorrectError": "(es)New Orderには1以上の数字を入力してください。", "confirmOrder": "(es)注文を行いますか?", - "createOrderSuccess": "(es)処理に成功しました。", "poNumberConflictError": "(es)既に同じPO Numberで注文済みもしくは発行済みの注文が存在しています。他のPO Numberで注文してください。" }, "label": { diff --git a/dictation_client/src/translation/fr.json b/dictation_client/src/translation/fr.json index 4e2714b..a346504 100644 --- a/dictation_client/src/translation/fr.json +++ b/dictation_client/src/translation/fr.json @@ -6,7 +6,8 @@ "emailIncorrectError": "(fr)Error Message", "internalServerError": "(fr)処理に失敗しました。時間をおいて再実行しても解決しない場合はシステム管理者にお問い合わせください。", "listEmpty": "(fr)検索結果が0件です。", - "dialogConfirm": "(fr)操作を実行しますか?" + "dialogConfirm": "(fr)操作を実行しますか?", + "success": "(fr)処理に成功しました。" }, "label": { "cancel": "(fr)Cancel", @@ -160,7 +161,6 @@ "poNumberIncorrectError": "(fr)PO Numberの形式が不正です。PO Numberは半角英数字(大文字)のみ入力可能です。", "newOrderIncorrectError": "(fr)New Orderには1以上の数字を入力してください。", "confirmOrder": "(fr)注文を行いますか?", - "createOrderSuccess": "(fr)処理に成功しました。", "poNumberConflictError": "(fr)既に同じPO Numberで注文済みもしくは発行済みの注文が存在しています。他のPO Numberで注文してください。" }, "label": {