Renaming atlases to collections

This commit is contained in:
Jori Lallo
2016-08-05 18:09:14 +03:00
parent cf1563eb2f
commit c753382571
14 changed files with 119 additions and 119 deletions

View File

@@ -21,7 +21,7 @@ const parseHeader = (text) => {
class DocumentEditStore {
@observable documentId = null;
@observable atlasId = null;
@observable collectionId = null;
@observable parentDocument;
@observable title;
@observable text;
@@ -63,7 +63,7 @@ class DocumentEditStore {
try {
const data = await client.post('/documents.create', {
parentDocument: this.parentDocument && this.parentDocument.id,
atlas: this.atlasId || this.parentDocument.atlas.id,
collection: this.collectionId || this.parentDocument.collection.id,
title: this.title,
text: this.text,
}, { cache: true });