mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
36ba47604f
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
22 lines
793 B
Handlebars
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>
|