mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[PM-8290] Refresh vault after saving item collections (#10053)
This commit is contained in:
@@ -86,7 +86,10 @@ import {
|
|||||||
BulkShareDialogResult,
|
BulkShareDialogResult,
|
||||||
openBulkShareDialog,
|
openBulkShareDialog,
|
||||||
} from "./bulk-action-dialogs/bulk-share-dialog/bulk-share-dialog.component";
|
} 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 { FolderAddEditDialogResult, openFolderAddEditDialog } from "./folder-add-edit.component";
|
||||||
import { ShareComponent } from "./share.component";
|
import { ShareComponent } from "./share.component";
|
||||||
import { VaultBannersComponent } from "./vault-banners/vault-banners.component";
|
import { VaultBannersComponent } from "./vault-banners/vault-banners.component";
|
||||||
@@ -573,7 +576,14 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async editCipherCollections(cipher: CipherView) {
|
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() {
|
async addCipher() {
|
||||||
|
|||||||
Reference in New Issue
Block a user