mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
print folder, collections, and ciphers to vault
This commit is contained in:
@@ -5,12 +5,29 @@ import {
|
||||
OnInit,
|
||||
} from '@angular/core';
|
||||
|
||||
import { CipherService } from 'jslib/abstractions/cipher.service';
|
||||
import { CollectionService } from 'jslib/abstractions/collection.service';
|
||||
import { FolderService } from 'jslib/abstractions/folder.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-vault',
|
||||
template: template,
|
||||
})
|
||||
export class VaultComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
vaultFolders: any[];
|
||||
vaultCiphers: any[];
|
||||
vaultCollections: any[];
|
||||
|
||||
constructor(private cipherService: CipherService, private collectionService: CollectionService,
|
||||
private folderService: FolderService) {
|
||||
|
||||
}
|
||||
|
||||
async ngOnInit() {
|
||||
// TODO?
|
||||
|
||||
this.vaultFolders = await this.folderService.getAllDecrypted();
|
||||
this.vaultCollections = await this.collectionService.getAllDecrypted();
|
||||
this.vaultCiphers = await this.cipherService.getAllDecrypted();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user