Skip to content

Commit

Permalink
Nest buttons within elements
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellBerlin committed Aug 30, 2024
1 parent 3682a1d commit 42298da
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions src/main/kotlin/com/carbonara/core/slack/SlackMessageService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,27 @@ class SlackMessageService {
markdownText("*Address:*\n$address\n$googleMapsLink\n*Products:*\n${productNames.joinToString(", ")}")
}
actions {
button {
text("ACCEPT", emoji = true)
style("primary")
value("processing_order")
}
button {
text("DELIVERY_IN_PROGRESS", emoji = true)
style("primary")
value("delivery_in_progress")
}
button {
text("DELIVERED", emoji = true)
style("primary")
value("delivered")
}
button {
text("CANCELLED", emoji = true)
style("danger")
value("cancelled")
elements {
button {
text("ACCEPT", emoji = true)
style("primary")
value("processing_order")
}
button {
text("DELIVERY_IN_PROGRESS", emoji = true)
style("primary")
value("delivery_in_progress")
}
button {
text("DELIVERED", emoji = true)
style("primary")
value("delivered")
}
button {
text("CANCELLED", emoji = true)
style("danger")
value("cancelled")
}
}
}
}
Expand Down

0 comments on commit 42298da

Please sign in to comment.