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:
parent
4ba721b314
commit
cd9d06b0b3
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user