Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
mvysny committed Aug 1, 2024
1 parent 55ecaab commit 44ba1b7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.github.mvysny.dynatest.DynaNodeGroup
import com.github.mvysny.dynatest.DynaTestDsl
import com.github.mvysny.dynatest.expectThrows
import com.github.mvysny.karibudsl.v10.button
import com.github.mvysny.karibudsl.v10.onClick
import com.github.mvysny.karibudsl.v10.onLeftClick
import com.github.mvysny.karibudsl.v10.span
import com.github.mvysny.kaributools.get
Expand Down Expand Up @@ -234,10 +235,10 @@ class NavigationPostponeView : VerticalLayout(), BeforeLeaveObserver {
Dialog().apply {
span("Are you sure you want to leave such a beautiful view?")
button("Yes") {
onLeftClick { action.proceed(); close() }
onClick { action.proceed(); close() }
}
button("No") {
onLeftClick { close() }
onClick { close() }
}
}.open()
}
Expand Down

0 comments on commit 44ba1b7

Please sign in to comment.