1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

getNested tree object by node id

This commit is contained in:
Kyle Spearrin
2018-10-26 10:48:06 -04:00
parent b0eea9d7ce
commit d4b3a16fd1
6 changed files with 30 additions and 10 deletions

View File

@@ -16,9 +16,7 @@ import { FolderService } from '../../abstractions/folder.service';
export class GroupingsComponent {
@Input() showFolders = true;
@Input() loadNestedFolders = false;
@Input() showCollections = true;
@Input() loadNestedCollections = false;
@Input() showFavorites = true;
@Output() onAllClicked = new EventEmitter();
@@ -63,9 +61,7 @@ export class GroupingsComponent {
} else {
this.collections = collections;
}
if (this.loadNestedCollections) {
this.nestedCollections = await this.collectionService.getAllNested(this.collections);
}
this.nestedCollections = await this.collectionService.getAllNested(this.collections);
}
async loadFolders() {
@@ -73,9 +69,7 @@ export class GroupingsComponent {
return;
}
this.folders = await this.folderService.getAllDecrypted();
if (this.loadNestedFolders) {
this.nestedFolders = await this.folderService.getAllNested();
}
this.nestedFolders = await this.folderService.getAllNested();
}
selectAll() {