mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
optionally set loaded
This commit is contained in:
@@ -35,11 +35,14 @@ export class GroupingsComponent {
|
|||||||
|
|
||||||
constructor(protected collectionService: CollectionService, protected folderService: FolderService) { }
|
constructor(protected collectionService: CollectionService, protected folderService: FolderService) { }
|
||||||
|
|
||||||
async load() {
|
async load(setLoaded = true) {
|
||||||
await this.loadFolders();
|
await this.loadFolders();
|
||||||
await this.loadCollections();
|
await this.loadCollections();
|
||||||
|
|
||||||
|
if (setLoaded) {
|
||||||
this.loaded = true;
|
this.loaded = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async loadCollections() {
|
async loadCollections() {
|
||||||
this.collections = await this.collectionService.getAllDecrypted();
|
this.collections = await this.collectionService.getAllDecrypted();
|
||||||
|
|||||||
Reference in New Issue
Block a user