Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jolevesq committed May 22, 2024
1 parent 1e68778 commit 8a76ab7
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,9 @@ export function AddNewLayer(): JSX.Element {
setLayerType(WMS);
} else if (displayURL.toUpperCase().endsWith('.CSV')) {
setLayerType(CSV);
} else {
setLayerType('');
setStepButtonDisable(true);
}
};

Expand All @@ -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);
}
};

Expand Down Expand Up @@ -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://'));
};

Expand Down

0 comments on commit 8a76ab7

Please sign in to comment.