Skip to content

Commit

Permalink
MID-5945 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Dec 12, 2019
1 parent 3595f05 commit 8fa2fa5
Showing 1 changed file with 15 additions and 2 deletions.
Expand Up @@ -10,6 +10,7 @@
import java.util.Collection;
import java.util.List;

import com.evolveum.midpoint.web.page.admin.server.dto.SynchronizationInformationDto;
import org.apache.wicket.Component;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.PropertyModel;
Expand Down Expand Up @@ -79,7 +80,13 @@ public boolean isVisible() {
add(iterativeInformationPanel);

synchronizationInformationPanelBefore = new SynchronizationInformationPanel(ID_SYNCHRONIZATION_INFORMATION_PANEL_BEFORE,
new PropertyModel<>(model, TaskCurrentStateDto.F_SYNCHRONIZATION_INFORMATION_DTO), false);
new LoadableModel<SynchronizationInformationDto>() {
@Override
protected SynchronizationInformationDto load() {
return model == null || model.getObject() == null ? null :
model.getObject().getSynchronizationInformationDto();
}
}, false);
synchronizationInformationPanelBefore.add(new VisibleEnableBehaviour() {
@Override
public boolean isVisible() {
Expand All @@ -90,7 +97,13 @@ public boolean isVisible() {
add(synchronizationInformationPanelBefore);

synchronizationInformationPanelAfter = new SynchronizationInformationPanel(ID_SYNCHRONIZATION_INFORMATION_PANEL_AFTER,
new PropertyModel<>(model, TaskCurrentStateDto.F_SYNCHRONIZATION_INFORMATION_AFTER_DTO), true);
new LoadableModel<SynchronizationInformationDto>() {
@Override
protected SynchronizationInformationDto load() {
return model == null || model.getObject() == null ? null :
model.getObject().getSynchronizationInformationDto();
}
}, true);
synchronizationInformationPanelAfter.add(new VisibleEnableBehaviour() {
@Override
public boolean isVisible() {
Expand Down

0 comments on commit 8fa2fa5

Please sign in to comment.