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,14 +328,16 @@ namespace Bit.App.Pages
|
|||
if(_folder || !string.IsNullOrWhiteSpace(_folderId))
|
||||
{
|
||||
ciphers = await _cipherService.GetAllByFolderAsync(_folderId);
|
||||
|
||||
var folders = await _folderService.GetAllAsync();
|
||||
var fGroupings = folders.Select(f => new Grouping(f, null)).OrderBy(g => g.Name).ToList();
|
||||
var fTreeNodes = Helpers.GetAllNested(fGroupings);
|
||||
var fTreeNode = Helpers.GetTreeNodeObject(fTreeNodes, _folderId);
|
||||
if(fTreeNode.Children?.Any() ?? false)
|
||||
if(!string.IsNullOrWhiteSpace(_folderId))
|
||||
{
|
||||
Groupings = fTreeNode.Children.Select(n => new GroupingOrCipher(n)).ToArray();
|
||||
var folders = await _folderService.GetAllAsync();
|
||||
var fGroupings = folders.Select(f => new Grouping(f, null)).OrderBy(g => g.Name).ToList();
|
||||
var fTreeNodes = Helpers.GetAllNested(fGroupings);
|
||||
var fTreeNode = Helpers.GetTreeNodeObject(fTreeNodes, _folderId);
|
||||
if(fTreeNode.Children?.Any() ?? false)
|
||||
{
|
||||
Groupings = fTreeNode.Children.Select(n => new GroupingOrCipher(n)).ToArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(!string.IsNullOrWhiteSpace(_collectionId))
|
||||
|
|
Loading…
Reference in a new issue