|
|
@@ -47,7 +47,8 @@ export default class PageContainer extends Container {
|
|
|
|
|
|
this.state = {
|
|
|
// local page data
|
|
|
- markdown: null, // will be initialized after initStateMarkdown()
|
|
|
+ markdown: 'markdown test', // will be initialized after initStateMarkdown()
|
|
|
+ // markdown: null, // will be initialized after initStateMarkdown()
|
|
|
pageId: mainContent.getAttribute('data-page-id'),
|
|
|
revisionId,
|
|
|
revisionCreatedAt: +mainContent.getAttribute('data-page-revision-created'),
|
|
|
@@ -87,7 +88,8 @@ export default class PageContainer extends Container {
|
|
|
|
|
|
// latest(on remote) information
|
|
|
remoteRevisionId: revisionId,
|
|
|
- remoteRevisionBody: null,
|
|
|
+ remoteRevisionBody: 'remoteRevisionBody',
|
|
|
+ // remoteRevisionBody: null,
|
|
|
remoteRevisionUpdateAt: null,
|
|
|
revisionIdHackmdSynced: mainContent.getAttribute('data-page-revision-id-hackmd-synced') || null,
|
|
|
lastUpdateUsername: mainContent.getAttribute('data-page-last-update-username') || null,
|
|
|
@@ -95,7 +97,8 @@ export default class PageContainer extends Container {
|
|
|
pageIdOnHackmd: mainContent.getAttribute('data-page-id-on-hackmd') || null,
|
|
|
hasDraftOnHackmd: !!mainContent.getAttribute('data-page-has-draft-on-hackmd'),
|
|
|
isHackmdDraftUpdatingInRealtime: false,
|
|
|
- isConflictDiffModalOpen: false,
|
|
|
+ isConflictDiffModalOpen: true,
|
|
|
+ // isConflictDiffModalOpen: false,
|
|
|
};
|
|
|
|
|
|
// parse creator, lastUpdateUser and revisionAuthor
|
|
|
@@ -688,7 +691,7 @@ export default class PageContainer extends Container {
|
|
|
|
|
|
async resolveConflictAndReload(pageId, revisionId, markdown, optionsToSave) {
|
|
|
await this.resolveConflict(pageId, revisionId, markdown, optionsToSave);
|
|
|
- window.location.reload();
|
|
|
+ // window.location.reload();
|
|
|
}
|
|
|
|
|
|
}
|