From a41a9bd13a7159ae59fd2826ae0f5a9db397eed4 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 4 Sep 2024 21:00:37 +0200 Subject: [PATCH] Displaying a different text if account does not support instant transfer --- .../net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt index 62124cf..d1f6290 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt @@ -196,7 +196,11 @@ fun TransferMoneyDialog( colors = SwitchDefaults.colors(checkedThumbColor = Colors.CodinuxSecondaryColor) ) - Text("Echtzeitüberweisung (evtl. kostenpflichtig)", Modifier.clickable { instantTransfer = !instantTransfer }) + if (accountSupportsInstantTransfer) { + Text("Echtzeitüberweisung (evtl. kostenpflichtig)", Modifier.clickable { instantTransfer = !instantTransfer }) + } else { + Text("Echtzeitüberweisung von Konto nicht unterstützt") + } } } }