1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

refresh ciphers list on add/edit/delete

This commit is contained in:
Kyle Spearrin
2018-01-31 17:20:27 -05:00
parent 16450f3ba9
commit 59726ad818
3 changed files with 7 additions and 26 deletions

View File

@@ -119,18 +119,18 @@ export class VaultComponent implements OnInit {
this.go();
}
savedCipher(cipher: CipherView) {
async savedCipher(cipher: CipherView) {
this.cipherId = cipher.id;
this.action = 'view';
this.go();
this.ciphersComponent.updateCipher(cipher);
await this.ciphersComponent.refresh();
}
deletedCipher(cipher: CipherView) {
async deletedCipher(cipher: CipherView) {
this.cipherId = null;
this.action = null;
this.go();
this.ciphersComponent.removeCipher(cipher.id);
await this.ciphersComponent.refresh();
}
editCipherAttachments(cipher: CipherView) {