Skip to content

Commit

Permalink
button visibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Sep 2, 2021
1 parent 14cd29b commit a667d5c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import java.util.List;

import com.evolveum.midpoint.gui.api.page.PageBase;
import com.evolveum.midpoint.gui.api.util.WebComponentUtil;
import com.evolveum.midpoint.web.component.dialog.Popupable;

Expand Down Expand Up @@ -106,7 +107,8 @@ protected void buttonClickPerformed(AjaxRequestTarget target, AssignmentObjectRe
}

protected boolean isCancelButtonVisible() {
return !(MultiCompositedButtonPanel.this.findParent(BasePanel.class) instanceof Popupable);
return !(MultiCompositedButtonPanel.this.findParent(BasePanel.class) instanceof Popupable) &&
!(getParent() instanceof PageBase);
}

@Override
Expand Down

0 comments on commit a667d5c

Please sign in to comment.