mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
refresh list if attachments change
This commit is contained in:
parent
ebc1807fcb
commit
e740a5bb77
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 4c083eeb92d599bd8b85fb88ec5d435079b79395
|
||||
Subproject commit 7b05416d556c6041e638ec5fcb58a060062cda84
|
@ -334,9 +334,16 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||
const childComponent = this.modal.show<AttachmentsComponent>(AttachmentsComponent, this.attachmentsModalRef);
|
||||
|
||||
childComponent.cipherId = cipher.id;
|
||||
let madeAttachmentChanges = false;
|
||||
childComponent.onUploadedAttachment.subscribe(() => madeAttachmentChanges = true);
|
||||
childComponent.onDeletedAttachment.subscribe(() => madeAttachmentChanges = true);
|
||||
|
||||
this.modal.onClosed.subscribe(() => {
|
||||
this.modal.onClosed.subscribe(async () => {
|
||||
this.modal = null;
|
||||
if (madeAttachmentChanges) {
|
||||
await this.ciphersComponent.refresh();
|
||||
}
|
||||
madeAttachmentChanges = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user