mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed post revisions not loading in modal-post-history
This commit is contained in:
parent
71524bf7da
commit
e7f9f7c101
4 changed files with 6 additions and 5 deletions
|
@ -443,6 +443,7 @@
|
|||
{{#if this.showPostHistory}}
|
||||
<GhFullscreenModal
|
||||
@modal="post-history"
|
||||
@model={{this.post}}
|
||||
@close={{this.closePostHistory}}
|
||||
@modifier="total-overlay post-history" />
|
||||
{{/if}}
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{{!-- {{#each this.post.post_revisions as |revision|}}
|
||||
{{!-- {{#each this.post.postRevisions as |revision|}}
|
||||
<div>{{revision.lexical}}</div>
|
||||
{{/each}} --}}
|
||||
</div>
|
||||
|
|
|
@ -12,7 +12,7 @@ export default class PostSerializer extends ApplicationSerializer.extend(Embedde
|
|||
updatedAtUTC: {key: 'updated_at'},
|
||||
email: {embedded: 'always'},
|
||||
newsletter: {embedded: 'always'},
|
||||
postRevisions: {embedded: 'always', key: 'post_revisions'}
|
||||
postRevisions: {embedded: 'always', key: 'postRevisions'}
|
||||
};
|
||||
|
||||
serialize(/*snapshot, options*/) {
|
||||
|
|
|
@ -831,7 +831,7 @@ exports[`Posts API Create Can create a post with lexical 2: [headers] 1`] = `
|
|||
Object {
|
||||
"access-control-allow-origin": "http://127.0.0.1:2369",
|
||||
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
||||
"content-length": "4535",
|
||||
"content-length": "4565",
|
||||
"content-type": "application/json; charset=utf-8",
|
||||
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
|
||||
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
||||
|
@ -1261,7 +1261,7 @@ exports[`Posts API Update Can update a post with lexical 2: [headers] 1`] = `
|
|||
Object {
|
||||
"access-control-allow-origin": "http://127.0.0.1:2369",
|
||||
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
||||
"content-length": "4465",
|
||||
"content-length": "4495",
|
||||
"content-type": "application/json; charset=utf-8",
|
||||
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
|
||||
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
||||
|
@ -1371,7 +1371,7 @@ exports[`Posts API Update Can update a post with lexical 4: [headers] 1`] = `
|
|||
Object {
|
||||
"access-control-allow-origin": "http://127.0.0.1:2369",
|
||||
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
||||
"content-length": "4952",
|
||||
"content-length": "5012",
|
||||
"content-type": "application/json; charset=utf-8",
|
||||
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
|
||||
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
||||
|
|
Loading…
Add table
Reference in a new issue