mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
no folder fixes for groupings display
This commit is contained in:
parent
fdea212415
commit
dff91dc67d
1 changed files with 9 additions and 7 deletions
|
@ -328,7 +328,8 @@ namespace Bit.App.Pages
|
||||||
if(_folder || !string.IsNullOrWhiteSpace(_folderId))
|
if(_folder || !string.IsNullOrWhiteSpace(_folderId))
|
||||||
{
|
{
|
||||||
ciphers = await _cipherService.GetAllByFolderAsync(_folderId);
|
ciphers = await _cipherService.GetAllByFolderAsync(_folderId);
|
||||||
|
if(!string.IsNullOrWhiteSpace(_folderId))
|
||||||
|
{
|
||||||
var folders = await _folderService.GetAllAsync();
|
var folders = await _folderService.GetAllAsync();
|
||||||
var fGroupings = folders.Select(f => new Grouping(f, null)).OrderBy(g => g.Name).ToList();
|
var fGroupings = folders.Select(f => new Grouping(f, null)).OrderBy(g => g.Name).ToList();
|
||||||
var fTreeNodes = Helpers.GetAllNested(fGroupings);
|
var fTreeNodes = Helpers.GetAllNested(fGroupings);
|
||||||
|
@ -338,6 +339,7 @@ namespace Bit.App.Pages
|
||||||
Groupings = fTreeNode.Children.Select(n => new GroupingOrCipher(n)).ToArray();
|
Groupings = fTreeNode.Children.Select(n => new GroupingOrCipher(n)).ToArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if(!string.IsNullOrWhiteSpace(_collectionId))
|
else if(!string.IsNullOrWhiteSpace(_collectionId))
|
||||||
{
|
{
|
||||||
ciphers = await _cipherService.GetAllByCollectionAsync(_collectionId);
|
ciphers = await _cipherService.GetAllByCollectionAsync(_collectionId);
|
||||||
|
|
Loading…
Reference in a new issue