diff --git a/src/store/index.ts b/src/store/index.ts index 91727fbd0..58f116083 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -91,7 +91,7 @@ export class Store { this.patternRoot.addTextPattern(); (this.projects as IObservableArray).clear(); - const projectsPath = PathUtils.join(this.getPagesPath(), 'projects.json'); + const projectsPath = PathUtils.join(this.getPagesPath(), 'projects.yaml'); const projectsJsonObject: JsonObject = Persister.loadYamlOrJson(projectsPath); (projectsJsonObject.projects as JsonArray).forEach((projectJson: JsonObject) => { const project: Project = Project.fromJsonObject(projectJson, this); @@ -102,7 +102,7 @@ export class Store { public openPage(id: string): void { MobX.transaction(() => { - const pagePath: string = PathUtils.join(this.getPagesPath(), `page-${id}.json`); + const pagePath: string = PathUtils.join(this.getPagesPath(), `page-${id}.yaml`); const json: JsonObject = Persister.loadYamlOrJson(pagePath); this.currentPage = Page.fromJsonObject(json, id, this); diff --git a/src/store/page/index.ts b/src/store/page/index.ts index 3ebc1b1b0..8b053487f 100644 --- a/src/store/page/index.ts +++ b/src/store/page/index.ts @@ -36,7 +36,7 @@ export class Page { } public save(): void { - const pagePath: string = PathUtils.join(this.store.getPagesPath(), `page-${this.id}.json`); + const pagePath: string = PathUtils.join(this.store.getPagesPath(), `page-${this.id}.yaml`); const jsonObject: JsonObject = this.toJsonObject(); Persister.saveYaml(pagePath, jsonObject); }