1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-10 21:33:17 +00:00

optionally set loaded

This commit is contained in:
Kyle Spearrin
2018-04-12 15:42:34 -04:00
parent c2bdabc098
commit 2782ae33fc

View File

@@ -35,10 +35,13 @@ export class GroupingsComponent {
constructor(protected collectionService: CollectionService, protected folderService: FolderService) { }
async load() {
async load(setLoaded = true) {
await this.loadFolders();
await this.loadCollections();
this.loaded = true;
if (setLoaded) {
this.loaded = true;
}
}
async loadCollections() {