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:
28
src/app/vault/groupings.component.ts
Normal file
28
src/app/vault/groupings.component.ts
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user