From 8a76ab7238b0f90edba499b7417365e7b320e70a Mon Sep 17 00:00:00 2001 From: jolevesq Date: Wed, 22 May 2024 17:22:05 -0400 Subject: [PATCH] small fixes --- .../layers/left-panel/add-new-layer/add-new-layer.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/geoview-core/src/core/components/layers/left-panel/add-new-layer/add-new-layer.tsx b/packages/geoview-core/src/core/components/layers/left-panel/add-new-layer/add-new-layer.tsx index ff2364b90c0..f37a0e820d5 100644 --- a/packages/geoview-core/src/core/components/layers/left-panel/add-new-layer/add-new-layer.tsx +++ b/packages/geoview-core/src/core/components/layers/left-panel/add-new-layer/add-new-layer.tsx @@ -789,6 +789,9 @@ export function AddNewLayer(): JSX.Element { setLayerType(WMS); } else if (displayURL.toUpperCase().endsWith('.CSV')) { setLayerType(CSV); + } else { + setLayerType(''); + setStepButtonDisable(true); } }; @@ -804,10 +807,6 @@ export function AddNewLayer(): JSX.Element { if (valid) { bestGuessLayerType(); setActiveStep(1); - - // disable continue button until a service type is selected - setLayerType(''); - setStepButtonDisable(true); } }; @@ -988,7 +987,7 @@ export function AddNewLayer(): JSX.Element { setLayerEntries([]); // TODO: create a utilities function to test valid URL before we enable the continue button - // TODO.CONT: This function shuold try to ping the server for an answer... + // TODO.CONT: This function should try to ping the server for an answer... setStepButtonDisable(!event.target.value.trim().startsWith('https://')); };