Ghost/ghost/admin/app/components/modals/restore-revision.hbs
Kevin Ansfield 36ba47604f Added Admin acceptance test for post revision restoration
ref https://linear.app/tryghost/issue/ENG-1078

- adds required setup for acceptance testing post revisions
- adds happy-path test for listing, previewing, and restoring a post revision
2024-06-04 20:16:19 +01:00

22 lines
793 B
Handlebars

<div class="modal-content" {{on-key "Enter" (perform this.restoreRevisionTask)}} data-test-modal="restore-revision">
<header class="modal-header">
<h1>{{this.title}}</h1>
</header>
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
<div class="modal-body">
<p>{{this.body}}</p>
</div>
<div class="modal-footer">
<button type="button" class="gh-btn" {{on "click" @close}}><span>Cancel</span></button>
<GhTaskButton
@buttonText="Restore"
@successText="Restored"
@task={{this.restoreRevisionTask}}
@class="gh-btn gh-btn-black gh-btn-icon"
data-test-button="restore"
/>
</div>
</div>