Ghost/ghost/admin/app/components/modals/restore-revision.hbs
Michael Barrett 49eac033a3
Added confirmation modal when restoring a post revision (#16689)
no issue

Added confirmation modal when restoring a post revision
2023-04-20 17:01:17 +01:00

21 lines
719 B
Handlebars

<div class="modal-content" {{on-key "Enter" (perform this.restoreRevisionTask)}}>
<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"
/>
</div>
</div>