Fixed showing "Fetch all transaction" below list (but cell has white spaces, why?)
This commit is contained in:
parent
bb347c8335
commit
68fd3f2188
|
@ -95,26 +95,31 @@ struct AccountTransactionsDialog: View {
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
List {
|
Form {
|
||||||
ForEach(filteredTransactions.sorted(by: { $0.valueDate.date > $1.valueDate.date } ), id: \.technicalId) { transaction in
|
Section {
|
||||||
AccountTransactionListItem(transaction, self.areMoreThanOneBanksTransactionsDisplayed)
|
ForEach(filteredTransactions.sorted(by: { $0.valueDate.date > $1.valueDate.date } ), id: \.technicalId) { transaction in
|
||||||
|
AccountTransactionListItem(transaction, self.areMoreThanOneBanksTransactionsDisplayed)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if haveAllTransactionsBeenFetched == false && showFetchAllTransactionsOverlay == false {
|
if haveAllTransactionsBeenFetched == false && showFetchAllTransactionsOverlay == false {
|
||||||
Spacer()
|
Section {
|
||||||
|
HStack {
|
||||||
HStack(alignment: .center) {
|
Spacer()
|
||||||
Spacer()
|
|
||||||
|
Button("Fetch all account transactions") {
|
||||||
|
self.fetchAllTransactions(self.accountsForWhichNotAllTransactionsHaveBeenFetched)
|
||||||
|
}
|
||||||
|
|
||||||
Button("Fetch all account transactions") {
|
Spacer()
|
||||||
self.fetchAllTransactions(self.accountsForWhichNotAllTransactionsHaveBeenFetched)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer()
|
|
||||||
}
|
}
|
||||||
.frame(height: 35)
|
.frame(maxWidth: .infinity, minHeight: 40)
|
||||||
|
.background(Color(UIColor.systemGroupedBackground))
|
||||||
|
.listRowInsets(EdgeInsets())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.background(Color(UIColor.systemGroupedBackground))
|
||||||
|
|
||||||
if showFetchAllTransactionsOverlay {
|
if showFetchAllTransactionsOverlay {
|
||||||
VStack {
|
VStack {
|
||||||
|
|
Loading…
Reference in New Issue