Implemented displaying error message if account transactions couldn't be retrieved
This commit is contained in:
parent
5384cd6b68
commit
fda744be8a
|
@ -24,6 +24,7 @@ accounts.view.ask.really.delete.account=Really delete account \'%s\'?\r\n\r\nThi
|
|||
|
||||
account.transactions.control.view.search.label=Find:
|
||||
account.transactions.control.view.balance.label=Balance:
|
||||
account.transactions.control.view.could.not.retrieve.account.transactions=Could not retrieve account transactions for \'%1$s\'.\n\nError message from your bank:\n\n%2$s
|
||||
|
||||
account.transactions.table.column.header.value.date=Value date
|
||||
account.transactions.table.column.header.usage=Usage
|
||||
|
|
|
@ -24,6 +24,7 @@ accounts.view.ask.really.delete.account=Möchten Sie das Konto \'%s\' wirklich l
|
|||
|
||||
account.transactions.control.view.search.label=Suchen:
|
||||
account.transactions.control.view.balance.label=Saldo:
|
||||
account.transactions.control.view.could.not.retrieve.account.transactions=Kontoumsätze für \'%1$s\' konnten nicht empfangen werden.\n\nFehlermeldung Ihrer Bank:\n\n%2$s
|
||||
|
||||
account.transactions.table.column.header.value.date=Buchungstag
|
||||
account.transactions.table.column.header.usage=Verwendungszweck
|
||||
|
|
|
@ -7,6 +7,7 @@ import javafx.scene.control.ContextMenu
|
|||
import javafx.scene.input.ContextMenuEvent
|
||||
import javafx.scene.input.MouseButton
|
||||
import javafx.scene.input.MouseEvent
|
||||
import net.dankito.banking.ui.javafx.dialogs.JavaFxDialogService
|
||||
import net.dankito.banking.ui.model.AccountTransaction
|
||||
import net.dankito.banking.ui.model.BankAccount
|
||||
import net.dankito.banking.ui.model.parameters.TransferMoneyData
|
||||
|
@ -137,6 +138,11 @@ open class AccountTransactionsView(private val presenter: BankingPresenter) : Vi
|
|||
if (response.isSuccessful) {
|
||||
updateTransactionsToDisplay()
|
||||
}
|
||||
else if (response.userCancelledAction == false) { // if user cancelled entering TAN then don't show a error message
|
||||
JavaFxDialogService().showErrorMessageOnUiThread(
|
||||
String.format(messages["account.transactions.control.view.could.not.retrieve.account.transactions"], response.bankAccount.displayName, response.errorToShowToUser)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue