Workable document moving

This commit is contained in:
Jori Lallo
2017-09-04 14:48:56 -07:00
parent 70d352e193
commit 483bf29cc4
14 changed files with 414 additions and 66 deletions

View File

@ -115,6 +115,9 @@ class Collection extends BaseModel {
if (data.id === this.id) this.fetch();
}
);
this.on('documents.move', (data: { collectionId: string }) => {
if (data.collectionId === this.id) this.fetch();
});
}
}