diff --git a/build.gradle.kts b/build.gradle.kts index 9bdd7cf..0fbf225 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -35,6 +35,7 @@ dependencies { } } implementation(libs.vok.db) + implementation(libs.karibu.dsl) implementation(libs.vaadin.boot) implementation(libs.hikaricp) diff --git a/src/main/kotlin/com/vaadin/starter/beveragebuddy/ui/categories/CategoriesList.kt b/src/main/kotlin/com/vaadin/starter/beveragebuddy/ui/categories/CategoriesList.kt index 7224329..ab112a7 100644 --- a/src/main/kotlin/com/vaadin/starter/beveragebuddy/ui/categories/CategoriesList.kt +++ b/src/main/kotlin/com/vaadin/starter/beveragebuddy/ui/categories/CategoriesList.kt @@ -101,7 +101,7 @@ class CategoriesList : KComposite() { icon = Icon(VaadinIcon.EDIT) addClassName("category__edit") addThemeVariants(ButtonVariant.LUMO_TERTIARY) - onLeftClick { edit(category) } + onClick { edit(category) } } private fun edit(category: Category) { diff --git a/src/main/kotlin/com/vaadin/starter/beveragebuddy/ui/reviews/ReviewsList.kt b/src/main/kotlin/com/vaadin/starter/beveragebuddy/ui/reviews/ReviewsList.kt index e20b5c1..8d031f9 100644 --- a/src/main/kotlin/com/vaadin/starter/beveragebuddy/ui/reviews/ReviewsList.kt +++ b/src/main/kotlin/com/vaadin/starter/beveragebuddy/ui/reviews/ReviewsList.kt @@ -132,7 +132,7 @@ class ReviewItem(val row: ReviewWithCategory) : KComposite() { icon = VaadinIcon.EDIT.create() className = "review__edit" addThemeVariants(ButtonVariant.LUMO_TERTIARY) - onLeftClick { onEdit() } + onClick { onEdit() } } } }