From 30057fea33a6996c45ec19a89614435d9862a889 Mon Sep 17 00:00:00 2001 From: Jordan Aasen <166539328+jaasen-livefront@users.noreply.github.com> Date: Tue, 18 Mar 2025 09:03:03 -0700 Subject: [PATCH] [PM-18669] - Moving item to org in desktop app does not update until sync (#13754) * refresh vault item list after sharing cipher * refresh list after save * fix vault sync issue * update autofill a11y * Revert "update autofill a11y" This reverts commit 1a3aa0d0f0d29b3aed6df1c2c6f872f00345afde. --- apps/desktop/src/vault/app/vault/vault.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/vault/app/vault/vault.component.ts b/apps/desktop/src/vault/app/vault/vault.component.ts index 2c669e388f8..d8be360170a 100644 --- a/apps/desktop/src/vault/app/vault/vault.component.ts +++ b/apps/desktop/src/vault/app/vault/vault.component.ts @@ -493,12 +493,14 @@ export class VaultComponent implements OnInit, OnDestroy { } async savedCipher(cipher: CipherView) { - this.cipherId = cipher.id; + this.cipherId = null; this.action = "view"; await this.vaultItemsComponent.refresh(); + this.cipherId = cipher.id; await this.cipherService.clearCache(this.activeUserId); - await this.viewComponent.load(); + await this.vaultItemsComponent.load(this.activeFilter.buildFilter()); this.go(); + await this.vaultItemsComponent.refresh(); } async deletedCipher(cipher: CipherView) { @@ -572,6 +574,8 @@ export class VaultComponent implements OnInit, OnDestroy { // eslint-disable-next-line @typescript-eslint/no-floating-promises this.viewCipher(cipher); await this.vaultItemsComponent.refresh(); + await this.cipherService.clearCache(this.activeUserId); + await this.vaultItemsComponent.load(this.activeFilter.buildFilter()); }); // eslint-disable-next-line rxjs-angular/prefer-takeuntil, rxjs/no-async-subscribe this.modal.onClosed.subscribe(async () => {