diff --git a/src/frontend/src/components/ProjectDetails/ProjectOptions.tsx b/src/frontend/src/components/ProjectDetails/ProjectOptions.tsx index d5c5d546a1..77560b1e90 100644 --- a/src/frontend/src/components/ProjectDetails/ProjectOptions.tsx +++ b/src/frontend/src/components/ProjectDetails/ProjectOptions.tsx @@ -3,6 +3,7 @@ import CoreModules from '../../shared/CoreModules'; import AssetModules from '../../shared/AssetModules'; import environment from '../../environment'; import { DownloadDataExtract, DownloadProjectForm } from '../../api/Project'; +import { ProjectActions } from '../../store/slices/ProjectSlice'; const ProjectOptions = ({ setToggleGenerateModal }) => { const dispatch = CoreModules.useAppDispatch(); @@ -119,7 +120,10 @@ const ProjectOptions = ({ setToggleGenerateModal }) => { setToggleGenerateModal(true)} + onClick={() => { + setToggleGenerateModal(true); + dispatch(ProjectActions.SetMobileFooterSelection('explore')); + }} variant="contained" color="error" sx={{ width: '200px', mr: '15px' }} diff --git a/src/frontend/src/views/NewProjectDetails.jsx b/src/frontend/src/views/NewProjectDetails.jsx index a3cb8af42e..35721a72d8 100644 --- a/src/frontend/src/views/NewProjectDetails.jsx +++ b/src/frontend/src/views/NewProjectDetails.jsx @@ -186,6 +186,12 @@ const Home = () => { fillOpacity: '0', }; + useEffect(() => { + if (mobileFooterSelection !== 'explore') { + setToggleGenerateModal(false); + } + }, [mobileFooterSelection]); + return (
{/* Customized Modal For Generate Tiles */}