From 87659e00292437f74cd6b1d2a84249fe2f30640b Mon Sep 17 00:00:00 2001 From: naezith Date: Thu, 9 Jan 2025 19:37:04 +0300 Subject: [PATCH] wallet only logout confirmation description --- assets/translations/en.json | 1 + lib/generated/codegen_loader.g.dart | 1 + lib/shared/widgets/logout_popup.dart | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/translations/en.json b/assets/translations/en.json index 3dfe42628e..10de3f6783 100644 --- a/assets/translations/en.json +++ b/assets/translations/en.json @@ -193,6 +193,7 @@ "swapFeeDetailsNone": "None", "swapFeeDetailsPaidFromReceivedVolume": "Paid from received volume", "logoutPopupTitle": "Confirm log out?", + "logoutPopupDescriptionWalletOnly": "Are you sure you want to logout?", "logoutPopupDescription": "Are you sure you want to logout? Your opened orders will no longer be available to match with other users and any trades in progress may not be completed", "transactionDetailsTitle": "Transaction completed", "customSeedWarningText": "Custom seed phrases are generally less secure and easier to crack than a generated BIP39 compliant seed phrase. To confirm you understand and are aware of the risk, type \"I\u00A0Understand\" in the box below.", diff --git a/lib/generated/codegen_loader.g.dart b/lib/generated/codegen_loader.g.dart index 5ad47df42c..ec6f4fb67e 100644 --- a/lib/generated/codegen_loader.g.dart +++ b/lib/generated/codegen_loader.g.dart @@ -214,6 +214,7 @@ abstract class LocaleKeys { 'swapFeeDetailsPaidFromReceivedVolume'; static const logoutPopupTitle = 'logoutPopupTitle'; static const logoutPopupDescription = 'logoutPopupDescription'; + static const logoutPopupDescriptionWalletOnly = 'logoutPopupDescriptionWalletOnly'; static const transactionDetailsTitle = 'transactionDetailsTitle'; static const customSeedWarningText = 'customSeedWarningText'; static const customSeedIUnderstand = 'customSeedIUnderstand'; diff --git a/lib/shared/widgets/logout_popup.dart b/lib/shared/widgets/logout_popup.dart index 2d7ec935e0..6b209b3f71 100644 --- a/lib/shared/widgets/logout_popup.dart +++ b/lib/shared/widgets/logout_popup.dart @@ -1,6 +1,7 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; +import 'package:web_dex/app_config/app_config.dart'; import 'package:web_dex/bloc/auth_bloc/auth_bloc.dart'; import 'package:web_dex/bloc/auth_bloc/auth_bloc_event.dart'; import 'package:web_dex/blocs/blocs.dart'; @@ -35,7 +36,9 @@ class LogOutPopup extends StatelessWidget { const SizedBox(height: 12), if (currentWalletBloc.wallet?.config.type == WalletType.iguana) SelectableText( - LocaleKeys.logoutPopupDescription.tr(), + kIsWalletOnly + ? LocaleKeys.logoutPopupDescriptionWalletOnly.tr() + : LocaleKeys.logoutPopupDescription.tr(), style: const TextStyle( fontSize: 14, fontWeight: FontWeight.w500,