From 6c4f85ff02716d3fae1451c66dec6b3be57836ba Mon Sep 17 00:00:00 2001 From: KjellBerlin Date: Fri, 30 Aug 2024 16:01:27 +0200 Subject: [PATCH] Separate fields in message --- .../com/carbonara/core/slack/SlackMessageService.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/carbonara/core/slack/SlackMessageService.kt b/src/main/kotlin/com/carbonara/core/slack/SlackMessageService.kt index 3da0b46..41114f3 100644 --- a/src/main/kotlin/com/carbonara/core/slack/SlackMessageService.kt +++ b/src/main/kotlin/com/carbonara/core/slack/SlackMessageService.kt @@ -35,12 +35,16 @@ class SlackMessageService { } */ section { - markdownText("*Customer Name:*\n$customerName") - markdownText("*OrderId:*\n$orderId") + fields { + markdownText("*Customer Name:*\n$customerName") + markdownText("*OrderId:*\n$orderId") + } } section { - markdownText("*Address:*\n$address\n$googleMapsLink") - markdownText("*Products:*\n${productNames.joinToString(", ")}") + fields { + markdownText("*Address:*\n$address\n$googleMapsLink") + markdownText("*Products:*\n${productNames.joinToString(", ")}") + } } actions { button {