From e606ff88a4256c02357730a17c14c15544b606ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Bispo?= Date: Mon, 20 Jun 2022 14:42:33 +0100 Subject: [PATCH] PS-70 Renamed TOTP to Totp to have consistency in naming. Removed a11y text of switch because android was overlapping text. --- .../Pages/Vault/GroupingsPage/GroupingsPage.xaml | 8 +++----- .../Vault/GroupingsPage/GroupingsPage.xaml.cs | 6 +++--- ...OTPListItem.cs => GroupingsPageTOTPListItem.cs} | 0 .../Vault/GroupingsPage/GroupingsPageViewModel.cs | 14 +++++++------- 4 files changed, 13 insertions(+), 15 deletions(-) rename src/App/Pages/Vault/GroupingsPage/{GroupingsPageOTPListItem.cs => GroupingsPageTOTPListItem.cs} (100%) diff --git a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml index d591b26ac..5eb023947 100644 --- a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml +++ b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml @@ -141,7 +141,7 @@ @@ -155,12 +155,10 @@ AutomationProperties.IsInAccessibleTree="True" AutomationProperties.Name="{u:I18n DisplayItemsContainingTOTP}" /> + Toggled="TotpFilter_Toggled" /> _logger.Exception(ex), allowsMultipleExecutions: false); - TOTPFilterCommand = new AsyncCommand(LoadAsync, + TotpFilterCommand = new AsyncCommand(LoadAsync, onException: ex => _logger.Exception(ex), allowsMultipleExecutions: false); @@ -163,12 +163,12 @@ namespace Bit.App.Pages get => _showVaultFilter; set => SetProperty(ref _showVaultFilter, value); } - public bool ShowTOTPFilter + public bool ShowTotpFilter { get => _showTOTPFilter; set => SetProperty(ref _showTOTPFilter, value); } - public bool TOTPFilterEnable + public bool TotpFilterEnable { get => _totpFilterEnable; set => SetProperty(ref _totpFilterEnable, value); @@ -193,7 +193,7 @@ namespace Bit.App.Pages public Command RefreshCommand { get; set; } public Command CipherOptionsCommand { get; set; } public ICommand VaultFilterCommand { get; } - public ICommand TOTPFilterCommand { get; } + public ICommand TotpFilterCommand { get; } public bool LoadedOnce { get; set; } public async Task LoadAsync() @@ -235,7 +235,7 @@ namespace Bit.App.Pages Loading = true; ShowList = false; ShowAddCipherButton = !Deleted; - ShowTOTPFilter = Type == CipherType.Login && canAccessPremium; + ShowTotpFilter = Type == CipherType.Login && canAccessPremium; var groupedItems = new List(); var page = Page as GroupingsPage; @@ -316,7 +316,7 @@ namespace Bit.App.Pages } if (Ciphers?.Any() ?? false) { - if (TOTPFilterEnable) + if (TotpFilterEnable) { var ciphersListItems = Ciphers.Where(c => c.IsDeleted == Deleted && !string.IsNullOrEmpty(c.Login.Totp)) .Select(c => new GroupingsPageTOTPListItem(c, true)).ToList(); @@ -333,7 +333,7 @@ namespace Bit.App.Pages { item.TotpTickAsync(); } - return TOTPFilterEnable; + return TotpFilterEnable; }); } else