From db3a87b0c4bf2a656e27f02df99bb9c7d2623115 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 3 Sep 2020 11:52:20 +0200 Subject: [PATCH] Added that fetching all transactions requires TAN. Otherwise user may be confused why enter TAN dialog pops up. --- .../BankingiOSApp/Base.lproj/Localizable.strings | 2 +- .../BankingiOSApp/de.lproj/Localizable.strings | 2 +- .../ui/views/AccountTransactionsDialog.swift | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings b/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings index 93f8cc00..b62c665d 100644 --- a/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings +++ b/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings @@ -53,7 +53,7 @@ "%@ transactions" = "%@ transactions"; -"Fetch all account transactions" = "Fetch earlier transactions"; +"Fetch all account transactions" = "Fetch earlier transactions (requires TAN)"; "Transfer money to %@" = "Transfer money to %@"; "Could not fetch latest transactions" = "Could not fetch latest transactions"; diff --git a/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings b/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings index 720b6569..e2bd7430 100644 --- a/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings +++ b/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings @@ -53,7 +53,7 @@ "%@ transactions" = "%@ Umsätze"; -"Fetch all account transactions" = "Ältere Umsätze holen"; +"Fetch all account transactions" = "Ältere Umsätze laden (erfordert TAN)"; "Transfer money to %@" = "Neue Überweisung an %@"; "Could not fetch latest transactions" = "Umsätze konnte nicht aktualisiert werden"; diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift index cdc27887..038b02d9 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift @@ -126,15 +126,15 @@ struct AccountTransactionsDialog: View { Spacer() HStack(alignment: .center) { - Button("x") { - self.showFetchAllTransactionsOverlay = false + Button(action: { self.showFetchAllTransactionsOverlay = false }) { + Text("x") + .bold() } - .font(.title) Spacer() - Button("Fetch all account transactions") { - self.fetchAllTransactions(self.accountsForWhichNotAllTransactionsHaveBeenFetched) + Button(action: { self.fetchAllTransactions(self.accountsForWhichNotAllTransactionsHaveBeenFetched) }) { + Text("Fetch all account transactions") } Spacer()