Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions harvester-app/src/framework/utils/css/moduloInicio.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
justify-content: space-evenly;
width: 414px;
height: 343px;
position: relative;
height: 75%;
}
.texto-usar-excel {
color: var(--texto-light, #000000);
Expand Down Expand Up @@ -93,10 +91,6 @@
justify-content: center;
}
.boton-borrar {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
padding: 0;
display: none;
background: transparent;
Expand Down Expand Up @@ -148,7 +142,8 @@
display: none;
}
.avanzar-analisis:disabled {
background: #DADADB;
cursor: default;
background: #DADADB;
}
.avanzar-analisis {
background: var(--primario, #a61930);
Expand Down
8 changes: 8 additions & 0 deletions harvester-app/src/framework/utils/js/moduloInicio.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ function botonCargar() {
} else {
// Si hubo error de validación, mostramos el mensaje
elementoNombreArchivo.textContent = 'Sin archivo seleccionado';
botonBorrar.style.display = 'none';
botonAnalisis.setAttribute('disabled', 'true');
botonAnalisis.style.cursor = 'default';
localStorage.removeItem('nombreArchivoExcel');
localStorage.removeItem('datosExcel');

// Mostrar modal con el error de validación
Swal.fire({
Expand All @@ -118,6 +123,9 @@ function botonCargar() {

// Actualizar UI
elementoNombreArchivo.textContent = 'Sin archivo seleccionado';
botonAnalisis.setAttribute('disabled', 'true');
localStorage.removeItem('nombreArchivoExcel');
localStorage.removeItem('datosExcel');

// Mostrar modal con el error
Swal.fire({
Expand Down
Loading