diff --git a/dictation_client/src/pages/DictationPage/filePropertyPopup.tsx b/dictation_client/src/pages/DictationPage/filePropertyPopup.tsx index ab234b2..4f3e9bb 100644 --- a/dictation_client/src/pages/DictationPage/filePropertyPopup.tsx +++ b/dictation_client/src/pages/DictationPage/filePropertyPopup.tsx @@ -47,6 +47,15 @@ export const FilePropertyPopup: React.FC = (props) => { if (fileName.length === 0) { return; } + + // ダイアログ確認 + if ( + /* eslint-disable-next-line no-alert */ + !window.confirm(t(getTranslationID("common.message.dialogConfirm"))) + ) { + return; + } + const { meta } = await dispatch( renameFileAsync({ audioFileId: selectedFileTask?.audioFileId ?? 0, @@ -59,7 +68,7 @@ export const FilePropertyPopup: React.FC = (props) => { if (meta.requestStatus === "fulfilled") { onClose(true); } - }, [dispatch, onClose, fileName, selectedFileTask]); + }, [t, dispatch, onClose, fileName, selectedFileTask]); return (