bitwarden-desktop/src/app/vault/vault.component.ts

25 lines
490 B
TypeScript

import * as template from './vault.component.html';
import {
Component,
OnInit,
} from '@angular/core';
import { CipherService } from 'jslib/abstractions/cipher.service';
@Component({
selector: 'app-vault',
template: template,
})
export class VaultComponent implements OnInit {
vaultCiphers: any[];
constructor(private cipherService: CipherService) {
}
async ngOnInit() {
this.vaultCiphers = await this.cipherService.getAllDecrypted();
}
}