#55 Perfil de Personal Administrativo - Añadir Vacaciones del Empleado (Actualizar automaticamente fechas)
This commit is contained in:
parent
a37b93591f
commit
2c30bed91f
@ -91,11 +91,8 @@ public class RequestRegisterView extends VerticalLayout {
|
||||
endDatePicker.setMin(startDate);
|
||||
endDatePicker.setMax(endDate);
|
||||
|
||||
startDatePicker.clear();
|
||||
endDatePicker.clear();
|
||||
getUI().ifPresent(ui -> ui.access(() -> {
|
||||
startDatePicker.setInitialPosition(startDate);
|
||||
}));
|
||||
startDatePicker.setValue(startDate);
|
||||
endDatePicker.setValue(startDate.plusDays(vacation.getDuration().intValue() - 1));
|
||||
}
|
||||
|
||||
private void updateDatePickerMinValues() {
|
||||
|
Loading…
Reference in New Issue
Block a user