Extracted fetchAllTransactionsButton
This commit is contained in:
parent
18cd571573
commit
b9f562ab3f
|
@ -109,9 +109,7 @@ struct AccountTransactionsDialog: View {
|
||||||
HStack {
|
HStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
Button("Fetch all account transactions") {
|
fetchAllTransactionsButton
|
||||||
self.fetchAllTransactions(self.accountsForWhichNotAllTransactionsHaveBeenFetched)
|
|
||||||
}
|
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
|
@ -135,9 +133,7 @@ struct AccountTransactionsDialog: View {
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
Button(action: { self.fetchAllTransactions(self.accountsForWhichNotAllTransactionsHaveBeenFetched) }) {
|
fetchAllTransactionsButton
|
||||||
Text("Fetch all account transactions")
|
|
||||||
}
|
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
|
@ -160,6 +156,13 @@ struct AccountTransactionsDialog: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private var fetchAllTransactionsButton: some View {
|
||||||
|
Button("Fetch all account transactions") {
|
||||||
|
self.fetchAllTransactions(self.accountsForWhichNotAllTransactionsHaveBeenFetched)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private func updateTransactions(_ executingDone: @escaping () -> Void) {
|
private func updateTransactions(_ executingDone: @escaping () -> Void) {
|
||||||
presenter.updateSelectedBankAccountTransactionsAsync { response in
|
presenter.updateSelectedBankAccountTransactionsAsync { response in
|
||||||
executingDone()
|
executingDone()
|
||||||
|
|
Loading…
Reference in New Issue