1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

split vault into components

This commit is contained in:
Kyle Spearrin
2018-01-23 22:21:14 -05:00
parent f7b8bef465
commit d3fdaed4c2
10 changed files with 161 additions and 133 deletions

View File

@@ -0,0 +1,28 @@
import * as template from './groupings.component.html';
import {
Component,
Input,
OnInit,
} from '@angular/core';
import { CollectionService } from 'jslib/abstractions/collection.service';
import { FolderService } from 'jslib/abstractions/folder.service';
@Component({
selector: 'app-vault-groupings',
template: template,
})
export class GroupingsComponent implements OnInit {
folders: any[];
collections: any[];
constructor(private collectionService: CollectionService, private folderService: FolderService) {
}
async ngOnInit() {
this.folders = await this.folderService.getAllDecrypted();
this.collections = await this.collectionService.getAllDecrypted();
}
}