optionally set loaded
This commit is contained in:
parent
c2bdabc098
commit
2782ae33fc
|
@ -35,11 +35,14 @@ export class GroupingsComponent {
|
|||
|
||||
constructor(protected collectionService: CollectionService, protected folderService: FolderService) { }
|
||||
|
||||
async load() {
|
||||
async load(setLoaded = true) {
|
||||
await this.loadFolders();
|
||||
await this.loadCollections();
|
||||
|
||||
if (setLoaded) {
|
||||
this.loaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
async loadCollections() {
|
||||
this.collections = await this.collectionService.getAllDecrypted();
|
||||
|
|
Loading…
Reference in New Issue