From e392b2e1698b70db099db313b74305cc0256ae1d Mon Sep 17 00:00:00 2001 From: Nishit Suwal <81785002+NSUWAL123@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:50:47 +0545 Subject: [PATCH] fix(frontend): custom tms url input (#998) * fix (projectDetails): generateProjectTiles - textfield label renamed * fix (projectDeatils): generateProjectTiles - UI changes, tile source moved before output format --- .../src/components/GenerateBasemap.jsx | 92 ++++++++++--------- 1 file changed, 48 insertions(+), 44 deletions(-) diff --git a/src/frontend/src/components/GenerateBasemap.jsx b/src/frontend/src/components/GenerateBasemap.jsx index d1091de09b..bc6c5bfcd9 100644 --- a/src/frontend/src/components/GenerateBasemap.jsx +++ b/src/frontend/src/components/GenerateBasemap.jsx @@ -100,46 +100,6 @@ const GenerateBasemap = ({ setToggleGenerateModal, toggleGenerateModal, projectI - {/* Output Format Dropdown */} - - - - Select Output Format - - { - setSelectedOutputFormat(e.target.value); - }} - > - {environment.tileOutputFormats?.map((form) => ( - - {form.label} - - ))} - - - {error.includes('selectedOutputFormat') && ( -

Output Format is Required.

- )} -
- {/* Tile Source Dropdown or TMS URL Input */} @@ -178,14 +138,14 @@ const GenerateBasemap = ({ setToggleGenerateModal, toggleGenerateModal, projectI )} {selectedTileSource === 'tms' && ( - + - {error.includes('tmsUrl') &&

Tile Source is Required.

} + {error.includes('tmsUrl') &&

TMS URL is Required.

}
)} - + {/* Output Format Dropdown */} + + + + Select Output Format + + { + setSelectedOutputFormat(e.target.value); + }} + > + {environment.tileOutputFormats?.map((form) => ( + + {form.label} + + ))} + + + {error.includes('selectedOutputFormat') && ( +

Output Format is Required.

+ )} +
+
{/* Generate Button */}