1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

[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 1a3aa0d0f0.
This commit is contained in:
Jordan Aasen
2025-03-18 09:03:03 -07:00
committed by GitHub
parent 514e2ca664
commit 30057fea33

View File

@@ -493,12 +493,14 @@ export class VaultComponent implements OnInit, OnDestroy {
} }
async savedCipher(cipher: CipherView) { async savedCipher(cipher: CipherView) {
this.cipherId = cipher.id; this.cipherId = null;
this.action = "view"; this.action = "view";
await this.vaultItemsComponent.refresh(); await this.vaultItemsComponent.refresh();
this.cipherId = cipher.id;
await this.cipherService.clearCache(this.activeUserId); await this.cipherService.clearCache(this.activeUserId);
await this.viewComponent.load(); await this.vaultItemsComponent.load(this.activeFilter.buildFilter());
this.go(); this.go();
await this.vaultItemsComponent.refresh();
} }
async deletedCipher(cipher: CipherView) { async deletedCipher(cipher: CipherView) {
@@ -572,6 +574,8 @@ export class VaultComponent implements OnInit, OnDestroy {
// eslint-disable-next-line @typescript-eslint/no-floating-promises // eslint-disable-next-line @typescript-eslint/no-floating-promises
this.viewCipher(cipher); this.viewCipher(cipher);
await this.vaultItemsComponent.refresh(); 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 // eslint-disable-next-line rxjs-angular/prefer-takeuntil, rxjs/no-async-subscribe
this.modal.onClosed.subscribe(async () => { this.modal.onClosed.subscribe(async () => {