1
0
mirror of https://github.com/bitwarden/mobile synced 2025-01-29 09:49:35 +01:00

Only display folders that have contents

This commit is contained in:
Kyle Spearrin 2016-06-14 22:19:40 -04:00
parent 4ba721b314
commit cd9d06b0b3
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ namespace Bit.App.Pages
{ {
_page = page; _page = page;
Text = AppResources.Add; Text = AppResources.Add;
Icon = "ion_plus"; Icon = "plus";
Clicked += ClickedItem; Clicked += ClickedItem;
} }

View File

@ -66,7 +66,7 @@ namespace Bit.App.Pages
var noneFolder = new VaultListPageModel.Folder(sites.Where(s => s.FolderId == null)); var noneFolder = new VaultListPageModel.Folder(sites.Where(s => s.FolderId == null));
pageFolders.Add(noneFolder); pageFolders.Add(noneFolder);
Folders.ResetWithRange(pageFolders); Folders.ResetWithRange(pageFolders.Where(f => f.Any()));
} }
private void SiteSelected(object sender, SelectedItemChangedEventArgs e) private void SiteSelected(object sender, SelectedItemChangedEventArgs e)
@ -206,7 +206,7 @@ namespace Bit.App.Pages
Children = { image, label }, Children = { image, label },
BackgroundColor = Color.FromHex("ecf0f5") BackgroundColor = Color.FromHex("ecf0f5")
}; };
View = stackLayout; View = stackLayout;
Height = 30; Height = 30;
} }