Tweaks for seamless save of new doc
This commit is contained in:
@@ -203,6 +203,9 @@ class DocumentsStore extends BaseStore {
|
||||
this.on('documents.delete', (data: { id: string }) => {
|
||||
this.remove(data.id);
|
||||
});
|
||||
this.on('documents.create', (data: Document) => {
|
||||
this.add(new Document(data));
|
||||
});
|
||||
|
||||
autorunAsync('DocumentsStore.persists', () => {
|
||||
if (this.data.size) {
|
||||
|
||||
Reference in New Issue
Block a user