From 53d23ec831a23504019d1e5017276ba39c830f07 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 25 Jun 2018 15:20:45 -0400 Subject: [PATCH] update cipher lsiting properly when folder deleted --- src/app/vault/vault.component.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/vault/vault.component.ts b/src/app/vault/vault.component.ts index 9884e993f7..d6f8f7d315 100644 --- a/src/app/vault/vault.component.ts +++ b/src/app/vault/vault.component.ts @@ -215,7 +215,7 @@ export class VaultComponent implements OnInit { FolderAddEditComponent, this.folderAddEditModalRef); childComponent.folderId = null; - childComponent.onSavedFolder.subscribe(async (folder: FolderView) => { + childComponent.onSavedFolder.subscribe(async () => { this.modal.close(); await this.groupingsComponent.loadFolders(); }); @@ -236,13 +236,15 @@ export class VaultComponent implements OnInit { FolderAddEditComponent, this.folderAddEditModalRef); childComponent.folderId = folderId; - childComponent.onSavedFolder.subscribe(async (folder: FolderView) => { + childComponent.onSavedFolder.subscribe(async () => { this.modal.close(); await this.groupingsComponent.loadFolders(); }); - childComponent.onDeletedFolder.subscribe(async (folder: FolderView) => { + childComponent.onDeletedFolder.subscribe(async () => { this.modal.close(); await this.groupingsComponent.loadFolders(); + await this.filterFolder('none'); + this.groupingsComponent.selectedFolderId = null; }); this.modal.onClosed.subscribe(() => {