mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-11 10:10:25 +01:00
[PM-8290] Refresh vault after saving item collections (#10053)
This commit is contained in:
parent
537fa67b09
commit
766c2f4b9c
@ -86,7 +86,10 @@ import {
|
||||
BulkShareDialogResult,
|
||||
openBulkShareDialog,
|
||||
} from "./bulk-action-dialogs/bulk-share-dialog/bulk-share-dialog.component";
|
||||
import { openIndividualVaultCollectionsDialog } from "./collections.component";
|
||||
import {
|
||||
CollectionsDialogResult,
|
||||
openIndividualVaultCollectionsDialog,
|
||||
} from "./collections.component";
|
||||
import { FolderAddEditDialogResult, openFolderAddEditDialog } from "./folder-add-edit.component";
|
||||
import { ShareComponent } from "./share.component";
|
||||
import { VaultBannersComponent } from "./vault-banners/vault-banners.component";
|
||||
@ -573,7 +576,14 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
async editCipherCollections(cipher: CipherView) {
|
||||
openIndividualVaultCollectionsDialog(this.dialogService, { data: { cipherId: cipher.id } });
|
||||
const dialog = openIndividualVaultCollectionsDialog(this.dialogService, {
|
||||
data: { cipherId: cipher.id },
|
||||
});
|
||||
const result = await lastValueFrom(dialog.closed);
|
||||
|
||||
if (result === CollectionsDialogResult.Saved) {
|
||||
this.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
async addCipher() {
|
||||
|
Loading…
Reference in New Issue
Block a user