bugfix opens create modal after login if geometry was drawn before

This commit is contained in:
2026-04-19 16:21:05 +02:00
parent 2a24f486b5
commit 583bbcd27d

View File

@@ -791,6 +791,13 @@ function submitLogin() {
currentUser = name; currentUser = name;
sessionStorage.setItem('webgis_user', currentUser); sessionStorage.setItem('webgis_user', currentUser);
document.getElementById('login-modal').style.display = 'none'; document.getElementById('login-modal').style.display = 'none';
// Open Create Modal if Geometry is pending
if (drawnGeometry) {
document.getElementById('create-geom').value = JSON.stringify(drawnGeometry);
document.getElementById('create-geom-type').value = drawnGeomType;
document.getElementById('create-modal').style.display = 'flex';
}
} }
function skipLogin() { function skipLogin() {