refresh list if attachments change
This commit is contained in:
parent
fbc756c6e3
commit
5ecb26b032
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit fe3a8785422a8866dbcb91d31db6d3fd2aa2daaa
|
||||
Subproject commit 7b05416d556c6041e638ec5fcb58a060062cda84
|
|
@ -136,9 +136,16 @@ export class VaultComponent implements OnInit {
|
|||
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