added wallet management localizations
Some checks failed
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
ci/woodpecker/push/bump_version Pipeline failed
Some checks failed
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
ci/woodpecker/push/bump_version Pipeline failed
This commit is contained in:
@@ -452,6 +452,7 @@
|
|||||||
"failedToLoadHistory": "Failed to load history",
|
"failedToLoadHistory": "Failed to load history",
|
||||||
"retry": "Retry",
|
"retry": "Retry",
|
||||||
"walletName": "Wallet name",
|
"walletName": "Wallet name",
|
||||||
|
"walletNameUpdateFailed": "Failed to update wallet name",
|
||||||
"walletNameSaved": "Wallet name saved",
|
"walletNameSaved": "Wallet name saved",
|
||||||
"topUpBalance": "Top Up Balance",
|
"topUpBalance": "Top Up Balance",
|
||||||
"addFunctionality": "Add functionality",
|
"addFunctionality": "Add functionality",
|
||||||
|
|||||||
@@ -453,6 +453,7 @@
|
|||||||
"failedToLoadHistory": "Не удалось загрузить историю",
|
"failedToLoadHistory": "Не удалось загрузить историю",
|
||||||
"retry": "Повторить",
|
"retry": "Повторить",
|
||||||
"walletName": "Название кошелька",
|
"walletName": "Название кошелька",
|
||||||
|
"walletNameUpdateFailed": "Не удалось обновить название кошелька",
|
||||||
"walletNameSaved": "Название кошелька сохранено",
|
"walletNameSaved": "Название кошелька сохранено",
|
||||||
"topUpBalance": "Пополнить баланс",
|
"topUpBalance": "Пополнить баланс",
|
||||||
"addFunctionality": "Добавить функциональность",
|
"addFunctionality": "Добавить функциональность",
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class BalanceWidget extends StatelessWidget {
|
|||||||
|
|
||||||
final wallets = walletsProvider.wallets;
|
final wallets = walletsProvider.wallets;
|
||||||
|
|
||||||
if (wallets == null || wallets.isEmpty) {
|
if (wallets.isEmpty) {
|
||||||
return Center(child: Text(loc.noWalletsAvailable));
|
return Center(child: Text(loc.noWalletsAvailable));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,8 @@ class ButtonsWalletWidget extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final provider = context.watch<WalletsProvider>();
|
final provider = context.watch<WalletsProvider>();
|
||||||
final wallet = provider.wallets?.first;
|
|
||||||
|
if (provider.wallets.isEmpty) return const SizedBox.shrink();
|
||||||
if (wallet == null) return const SizedBox.shrink();
|
|
||||||
|
|
||||||
return Row(
|
return Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ class _WalletEditHeaderState extends State<WalletEditHeader> {
|
|||||||
final provider = context.watch<WalletsProvider>();
|
final provider = context.watch<WalletsProvider>();
|
||||||
final wallet = provider.selectedWallet;
|
final wallet = provider.selectedWallet;
|
||||||
final loc = AppLocalizations.of(context)!;
|
final loc = AppLocalizations.of(context)!;
|
||||||
final messanger = ScaffoldMessenger.of(context);
|
|
||||||
|
|
||||||
if (wallet == null) {
|
if (wallet == null) {
|
||||||
return SizedBox.shrink();
|
return SizedBox.shrink();
|
||||||
@@ -93,8 +92,8 @@ class _WalletEditHeaderState extends State<WalletEditHeader> {
|
|||||||
await executeActionWithNotification(
|
await executeActionWithNotification(
|
||||||
context: context,
|
context: context,
|
||||||
action: () async => await provider.updateWallet(wallet.copyWith(name: _controller.text)),
|
action: () async => await provider.updateWallet(wallet.copyWith(name: _controller.text)),
|
||||||
errorMessage: 'Failed to update wallet name',
|
errorMessage: loc.walletNameUpdateFailed,
|
||||||
successMessage: 'Wallet name saved',
|
successMessage: loc.walletNameSaved,
|
||||||
);
|
);
|
||||||
setState(() {
|
setState(() {
|
||||||
_isEditing = false;
|
_isEditing = false;
|
||||||
|
|||||||
@@ -18,10 +18,6 @@ class WalletWidgets extends StatelessWidget {
|
|||||||
|
|
||||||
final wallets = provider.wallets;
|
final wallets = provider.wallets;
|
||||||
|
|
||||||
if (wallets == null) {
|
|
||||||
return const Center(child: CircularProgressIndicator());
|
|
||||||
}
|
|
||||||
|
|
||||||
return GridView.builder(
|
return GridView.builder(
|
||||||
scrollDirection: Axis.vertical,
|
scrollDirection: Axis.vertical,
|
||||||
physics: AlwaysScrollableScrollPhysics(),
|
physics: AlwaysScrollableScrollPhysics(),
|
||||||
|
|||||||
Reference in New Issue
Block a user