mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
split vault into components
This commit is contained in:
@@ -6,28 +6,19 @@ import {
|
||||
} 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 {
|
||||
vaultFolders: any[];
|
||||
vaultCiphers: any[];
|
||||
vaultCollections: any[];
|
||||
|
||||
constructor(private cipherService: CipherService, private collectionService: CollectionService,
|
||||
private folderService: FolderService) {
|
||||
constructor(private cipherService: CipherService) {
|
||||
|
||||
}
|
||||
|
||||
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