1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

HasCiphers and HasFolders props

This commit is contained in:
Kyle Spearrin
2019-06-05 00:29:49 -04:00
parent a239ee80bc
commit c3f91761f6
2 changed files with 6 additions and 1 deletions

View File

@@ -68,6 +68,8 @@ namespace Bit.App.Pages
public string CollectionId { get; set; }
public Func<CipherView, bool> Filter { get; set; }
public bool HasCiphers { get; set; }
public bool HasFolders { get; set; }
public List<CipherView> Ciphers { get; set; }
public List<CipherView> FavoriteCiphers { get; set; }
public List<CipherView> NoFolderCiphers { get; set; }
@@ -292,11 +294,13 @@ namespace Bit.App.Pages
{
NoDataText = AppResources.NoItems;
_allCiphers = await _cipherService.GetAllDecryptedAsync();
HasCiphers = _allCiphers.Any();
FavoriteCiphers?.Clear();
NoFolderCiphers?.Clear();
_folderCounts.Clear();
_collectionCounts.Clear();
_typeCounts.Clear();
HasFolders = false;
Filter = null;
if(MainPage)
@@ -305,6 +309,7 @@ namespace Bit.App.Pages
{
Folders = await _folderService.GetAllDecryptedAsync();
NestedFolders = await _folderService.GetAllNestedAsync();
HasFolders = Folders.Any();
}
if(ShowCollections)
{