[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 48/54: Demo Shop, reloading
From: |
gnunet |
Subject: |
[taler-taler-ios] 48/54: Demo Shop, reloading |
Date: |
Fri, 30 Jun 2023 22:34:20 +0200 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository taler-ios.
commit 02c2fa95e42305880be701c746ec21caf2f27f7d
Author: Marc Stibane <marc@taler.net>
AuthorDate: Fri Jun 30 18:18:29 2023 +0200
Demo Shop, reloading
---
.../Views/Balances/BalancesSectionView.swift | 26 +++++++++-------------
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/TalerWallet1/Views/Balances/BalancesSectionView.swift
b/TalerWallet1/Views/Balances/BalancesSectionView.swift
index d6f01df..e16015b 100644
--- a/TalerWallet1/Views/Balances/BalancesSectionView.swift
+++ b/TalerWallet1/Views/Balances/BalancesSectionView.swift
@@ -81,24 +81,24 @@ struct BalancesSectionView: View {
}
Section {
-// if "KUDOS" == currency && !balance.available.isZero {
-// Text("You can spend these KUDOS in the [Demo
Shop](https://shop.demo.taler.net), or send coins to another wallet.")
-// .multilineTextAlignment(.leading)
-// }
+ if "KUDOS" == currency && !balance.available.isZero {
+ Text("You can spend these KUDOS in the [Demo
Shop](https://shop.demo.taler.net), or send coins to another wallet.")
+ .multilineTextAlignment(.leading)
+ }
HStack(spacing: 0) {
NavigationLink(destination: LazyView {
SendAmount(amountAvailable: balance.available,
centsToTransfer: $centsToTransfer,
summary: $summary)
}, tag: 1, selection: $buttonSelected
- ) { EmptyView() }.frame(width: 0).opacity(0).hidden()
+ ) { EmptyView() }.frame(width: 0).opacity(0).hidden()
// SendAmount
NavigationLink(destination: LazyView {
RequestPayment(scopeInfo: balance.scopeInfo,
centsToTransfer: $centsToTransfer,
summary: $summary)
}, tag: 2, selection: $buttonSelected
- ) { EmptyView() }.frame(width: 0).opacity(0).hidden()
+ ) { EmptyView() }.frame(width: 0).opacity(0).hidden()
// RequestPayment
NavigationLink(destination: LazyView {
TransactionsListView(navTitle: String(localized:
"Transactions"), currency: currency,
@@ -106,16 +106,13 @@ struct BalancesSectionView: View {
reloadAllAction: reloadCompleted,
reloadOneAction: reloadOneAction)
}, tag: 3, selection: $buttonSelected
- ) { EmptyView() }.frame(width: 0).opacity(0).hidden()
+ ) { EmptyView() }.frame(width: 0).opacity(0).hidden()
// TransactionsListView
BalanceRowView(amount: balance.available, sendAction: {
-//print("button: Send \(currency)")
buttonSelected = 1 // will trigger SendAmount
NavigationLink
}, recvAction: {
-//print("button: Request Payment: \(currency)")
buttonSelected = 2 // will trigger RequestPayment
NavigationLink
}, rowAction: {
-//print("button: Transactions: \(currency)")
buttonSelected = 3 // will trigger
TransactionList NavigationLink
})
}
@@ -168,17 +165,16 @@ struct BalancesSectionView: View {
.font(.title)
}.id(sectionID)
.task {
- if shownSectionID != sectionID {
+// if shownSectionID != sectionID {
symLog.log("task for BalancesSectionView \(sectionID) - reload
Transactions")
let response = await model.transactionsT(currency: currency)
transactions = response
pendingTransactions = WalletModel.pendingTransactions(response)
uncompletedTransactions =
WalletModel.uncompletedTransactions(response)
shownSectionID = sectionID
- } else {
- symLog.log("task for BalancesSectionView \(sectionID) ❗️ skip
reloading Transactions")
-
- }
+// } else {
+// symLog.log("task for BalancesSectionView \(sectionID) ❗️
skip reloading Transactions")
+// }
}
} // body
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 25/54: failTransaction, (continued)
- [taler-taler-ios] 25/54: failTransaction, gnunet, 2023/06/30
- [taler-taler-ios] 23/54: Remove old view, gnunet, 2023/06/30
- [taler-taler-ios] 24/54: balance-change, gnunet, 2023/06/30
- [taler-taler-ios] 47/54: #available(iOS 17.0, *) only with Xcode 15, gnunet, 2023/06/30
- [taler-taler-ios] 46/54: ThreeAmountsSheet, gnunet, 2023/06/30
- [taler-taler-ios] 51/54: remove debugging, gnunet, 2023/06/30
- [taler-taler-ios] 22/54: cleaned up P2P, gnunet, 2023/06/30
- [taler-taler-ios] 54/54: iOS: bump version to 0.9.3 (10), gnunet, 2023/06/30
- [taler-taler-ios] 49/54: ScrollViewReader, gnunet, 2023/06/30
- [taler-taler-ios] 50/54: withdrawalAmountDetails, gnunet, 2023/06/30
- [taler-taler-ios] 48/54: Demo Shop, reloading,
gnunet <=
- [taler-taler-ios] 52/54: playSound, gnunet, 2023/06/30
- [taler-taler-ios] 53/54: ScrollViewReader needs Spacers if too few items, gnunet, 2023/06/30