mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-18 02:41:15 +02:00
update cipher lsiting properly when folder deleted
This commit is contained in:
parent
a2a6d89908
commit
53d23ec831
@ -215,7 +215,7 @@ export class VaultComponent implements OnInit {
|
|||||||
FolderAddEditComponent, this.folderAddEditModalRef);
|
FolderAddEditComponent, this.folderAddEditModalRef);
|
||||||
|
|
||||||
childComponent.folderId = null;
|
childComponent.folderId = null;
|
||||||
childComponent.onSavedFolder.subscribe(async (folder: FolderView) => {
|
childComponent.onSavedFolder.subscribe(async () => {
|
||||||
this.modal.close();
|
this.modal.close();
|
||||||
await this.groupingsComponent.loadFolders();
|
await this.groupingsComponent.loadFolders();
|
||||||
});
|
});
|
||||||
@ -236,13 +236,15 @@ export class VaultComponent implements OnInit {
|
|||||||
FolderAddEditComponent, this.folderAddEditModalRef);
|
FolderAddEditComponent, this.folderAddEditModalRef);
|
||||||
|
|
||||||
childComponent.folderId = folderId;
|
childComponent.folderId = folderId;
|
||||||
childComponent.onSavedFolder.subscribe(async (folder: FolderView) => {
|
childComponent.onSavedFolder.subscribe(async () => {
|
||||||
this.modal.close();
|
this.modal.close();
|
||||||
await this.groupingsComponent.loadFolders();
|
await this.groupingsComponent.loadFolders();
|
||||||
});
|
});
|
||||||
childComponent.onDeletedFolder.subscribe(async (folder: FolderView) => {
|
childComponent.onDeletedFolder.subscribe(async () => {
|
||||||
this.modal.close();
|
this.modal.close();
|
||||||
await this.groupingsComponent.loadFolders();
|
await this.groupingsComponent.loadFolders();
|
||||||
|
await this.filterFolder('none');
|
||||||
|
this.groupingsComponent.selectedFolderId = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.modal.onClosed.subscribe(() => {
|
this.modal.onClosed.subscribe(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user