#4 Perfil de Empleado-Quitar el addItemDoubleClickListener para editar porque ya existe el boton de edit

This commit is contained in:
Melina Gutierrez 2024-09-08 08:26:03 -04:00
parent 926b32a8cc
commit 9799e23ac8
2 changed files with 2 additions and 6 deletions

View File

@ -300,7 +300,8 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
return List.of( return List.of(
mt, fs, firstName, lastName, status, birthday, birthCity, maritalStatus, mt, fs, firstName, lastName, status, birthday, birthCity, maritalStatus,
residenceAddress, phoneNumber, personalEmail, position, team, ss, emergencyCName, residenceAddress, phoneNumber, personalEmail, position, team, ss, emergencyCName,
emergencyCAddress, emergencyCPhone, emergencyCEmail, si, upload, profileImagePreview, saveButton, editButton emergencyCAddress, emergencyCPhone, emergencyCEmail, si, upload, profileImagePreview,
saveButton, editButton
); );
} }
} }

View File

@ -45,11 +45,6 @@ public class EmployeesListView extends Main {
addEditButtonColumn("View", this::navigateToEmployeeView); addEditButtonColumn("View", this::navigateToEmployeeView);
addEditButtonColumn("Edit", this::navigateToEditView); addEditButtonColumn("Edit", this::navigateToEditView);
setupPagingGrid(); setupPagingGrid();
table.addItemDoubleClickListener(event -> {
Employee employee = event.getItem();
navigateToEditView(employee);
});
} }
private void updateEmployeeStatus(final Employee employee, final boolean isActive) { private void updateEmployeeStatus(final Employee employee, final boolean isActive) {