1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-13 06:43:17 +00:00

PS-70 show toggle only if it's premium

This commit is contained in:
André Bispo
2022-06-20 11:17:20 +01:00
parent 751fdf2db6
commit c9c3e6d98d

View File

@@ -228,13 +228,14 @@ namespace Bit.App.Pages
} }
PageTitle = ShowVaultFilter ? AppResources.Vaults : AppResources.MyVault; PageTitle = ShowVaultFilter ? AppResources.Vaults : AppResources.MyVault;
} }
var canAccessPremium = await _stateService.CanAccessPremiumAsync();
_doingLoad = true; _doingLoad = true;
LoadedOnce = true; LoadedOnce = true;
ShowNoData = false; ShowNoData = false;
Loading = true; Loading = true;
ShowList = false; ShowList = false;
ShowAddCipherButton = !Deleted; ShowAddCipherButton = !Deleted;
ShowTOTPFilter = Type == CipherType.Login; ShowTOTPFilter = Type == CipherType.Login && canAccessPremium;
var groupedItems = new List<GroupingsPageListGroup>(); var groupedItems = new List<GroupingsPageListGroup>();
var page = Page as GroupingsPage; var page = Page as GroupingsPage;