Skip to content

Commit

Permalink
fix: adapt ConfirmDialogTester to Vaadin 24 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Dec 30, 2022
1 parent b0f4d76 commit bb250ec
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public void confirm() {
*/
public void cancel() {
ensureComponentIsUsable();
if (!Boolean.parseBoolean(
getComponent().getElement().getProperty("cancel"))) {
if (!Boolean.parseBoolean(getComponent().getElement()
.getProperty("cancelButtonVisible"))) {
throw new IllegalStateException("Cancel button is not available.");
}
ComponentUtil.fireEvent(getComponent(),
Expand All @@ -71,8 +71,8 @@ public void cancel() {
*/
public void reject() {
ensureComponentIsUsable();
if (!Boolean.parseBoolean(
getComponent().getElement().getProperty("reject"))) {
if (!Boolean.parseBoolean(getComponent().getElement()
.getProperty("rejectButtonVisible"))) {
throw new IllegalStateException("Reject button is not available.");
}
ComponentUtil.fireEvent(getComponent(),
Expand Down

0 comments on commit bb250ec

Please sign in to comment.