mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Sorted post revisions by timestamp
no issue - reversed timestamps of post revisions
This commit is contained in:
parent
30535eb8f5
commit
56b6fedb72
2 changed files with 5 additions and 2 deletions
|
@ -23,7 +23,6 @@
|
|||
class="back settings-menu-header-action"
|
||||
data-test-button="close-psm-subview"
|
||||
type="button" {{action "closeModal"}}
|
||||
{{!-- disable mouseDown so it doesn't trigger focus-out validations --}}
|
||||
{{on "mousedown" (optional this.noop)}}
|
||||
>
|
||||
{{svg-jar "arrow-left"}}
|
||||
|
@ -33,7 +32,7 @@
|
|||
</div>
|
||||
<div class="settings-menu-content">
|
||||
<ul class="nav-list">
|
||||
{{#each this.post.postRevisions as |revision|}}
|
||||
{{#each this.revisionList as |revision|}}
|
||||
<li class="nav-list-item">
|
||||
<button type="button">
|
||||
<div class="flex items-center">
|
||||
|
|
|
@ -83,6 +83,10 @@ export default ModalComponent.extend({
|
|||
return {
|
||||
post: this.model
|
||||
};
|
||||
},
|
||||
|
||||
get revisionList() {
|
||||
return this.post.get('postRevisions').toArray().reverse();
|
||||
}
|
||||
// get reversedPosts() {
|
||||
// return this.post.toArray().reverse();
|
||||
|
|
Loading…
Add table
Reference in a new issue