Skip to content

Commit

Permalink
mid-7230 fix (modal window problem fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Sep 24, 2021
1 parent ec82c33 commit c39acc9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

import java.util.*;

import com.evolveum.midpoint.gui.api.component.result.OperationResultPopupPanel;

import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxFallbackLink;
Expand Down Expand Up @@ -85,9 +87,9 @@ public void onClick(Optional<AjaxRequestTarget> optionalTarget) {
PrismObjectWrapper<TaskType> taskWrapper = TaskResultPanel.this.getObjectWrapper();
TaskType taskType = taskWrapper.getObject().asObjectable();
OperationResult opResult = OperationResult.createOperationResult(taskType.getResult());
OperationResultPanel body = new OperationResultPanel(
OperationResultPopupPanel body = new OperationResultPopupPanel(
getPageBase().getMainPopupBodyId(),
new Model<>(OpResult.getOpResult(getPageBase(), opResult)));
new Model<>(opResult));
body.setOutputMarkupId(true);
getPageBase().showMainPopup(body, target);
}
Expand Down

0 comments on commit c39acc9

Please sign in to comment.