From 9799e23ac8a1d46980444c729c3e65f49d8f50ca Mon Sep 17 00:00:00 2001 From: Melina Gutierrez Date: Sun, 8 Sep 2024 08:26:03 -0400 Subject: [PATCH] #4 Perfil de Empleado-Quitar el addItemDoubleClickListener para editar porque ya existe el boton de edit --- .../java/com/primefactorsolutions/views/EmployeeView.java | 3 ++- .../com/primefactorsolutions/views/EmployeesListView.java | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/primefactorsolutions/views/EmployeeView.java b/src/main/java/com/primefactorsolutions/views/EmployeeView.java index ad1f23d..6709e6f 100644 --- a/src/main/java/com/primefactorsolutions/views/EmployeeView.java +++ b/src/main/java/com/primefactorsolutions/views/EmployeeView.java @@ -300,7 +300,8 @@ public class EmployeeView extends BeanValidationForm implements HasUrl return List.of( mt, fs, firstName, lastName, status, birthday, birthCity, maritalStatus, residenceAddress, phoneNumber, personalEmail, position, team, ss, emergencyCName, - emergencyCAddress, emergencyCPhone, emergencyCEmail, si, upload, profileImagePreview, saveButton, editButton + emergencyCAddress, emergencyCPhone, emergencyCEmail, si, upload, profileImagePreview, + saveButton, editButton ); } } diff --git a/src/main/java/com/primefactorsolutions/views/EmployeesListView.java b/src/main/java/com/primefactorsolutions/views/EmployeesListView.java index 369d2ce..e9f3726 100644 --- a/src/main/java/com/primefactorsolutions/views/EmployeesListView.java +++ b/src/main/java/com/primefactorsolutions/views/EmployeesListView.java @@ -45,11 +45,6 @@ public class EmployeesListView extends Main { addEditButtonColumn("View", this::navigateToEmployeeView); addEditButtonColumn("Edit", this::navigateToEditView); setupPagingGrid(); - - table.addItemDoubleClickListener(event -> { - Employee employee = event.getItem(); - navigateToEditView(employee); - }); } private void updateEmployeeStatus(final Employee employee, final boolean isActive) {