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

apply settings with state service.

This commit is contained in:
Kyle Spearrin
2018-02-12 15:06:39 -05:00
parent 3bb03d13d7
commit 3ee71a2b5b
6 changed files with 50 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ export class CiphersComponent {
searchPlaceholder: string = null;
private filter: (cipher: CipherView) => boolean = null;
constructor(private cipherService: CipherService) {}
constructor(private cipherService: CipherService) { }
async load(filter: (cipher: CipherView) => boolean = null) {
this.filter = filter;
@@ -42,6 +42,8 @@ export class CiphersComponent {
}
async refresh() {
this.loaded = false;
this.ciphers = [];
await this.load(this.filter);
}