1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +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

@@ -142,6 +142,7 @@ export class AddEditComponent implements OnChanges {
try {
this.formPromise = this.cipherService.saveWithServer(cipher);
await this.formPromise;
this.cipher.id = cipher.id;
this.analytics.eventTrack.next({ action: this.editMode ? 'Edited Cipher' : 'Added Cipher' });
this.toasterService.popAsync('success', null, this.i18nService.t(this.editMode ? 'editedItem' : 'addedItem'));
this.onSavedCipher.emit(this.cipher);