diff --git a/src/common/ExportDialog.jsx b/src/common/ExportDialog.jsx index 410a974a..f32b5ffd 100644 --- a/src/common/ExportDialog.jsx +++ b/src/common/ExportDialog.jsx @@ -17,9 +17,11 @@ import { RadioGroup, Typography, FormGroup, + Select, } from "@mui/material"; import CloseIcon from "@mui/icons-material/Close"; import { speakerInfoOptions, bgMusicOptions } from "config"; +import { MenuItem } from "react-contextmenu"; const ExportDialog = ({ open, @@ -32,11 +34,12 @@ const ExportDialog = ({ handleExportCheckboxChange, isBulkTaskDownload, currentSelectedTasks, + multiOptionDialog=false, }) => { const { transcription, translation, voiceover, speakerInfo, bgMusic } = exportTypes; - const [currentTaskType, setCurrentTaskType] = useState(""); + const [currentTaskType, setCurrentTaskType] = useState(taskType); const transcriptExportTypes = useSelector( (state) => state.getTranscriptExportTypes.data.export_types @@ -58,7 +61,9 @@ const ExportDialog = ({ setCurrentTaskType("TRANSLATION_EDIT"); } } else { - setCurrentTaskType(taskType); + if(!multiOptionDialog){ + setCurrentTaskType(taskType); + } } }, [taskType, isBulkTaskDownload, currentSelectedTasks]); @@ -69,7 +74,16 @@ const ExportDialog = ({ PaperProps={{ style: { borderRadius: "10px" } }} > - Export Voiceover{" "} + {multiOptionDialog ? + Export   + + + : + Export {currentTaskType} + }