Ghost/ghost/admin/app/components/modals/edit-newsletter/confirm-unarchive.hbs

32 lines
1.1 KiB
Handlebars
Raw Normal View History

<div class="modal-content">
<header class="modal-header" data-test-modal="confirm-newsletter-unarchive">
<h1>Are you sure?</h1>
</header>
<button type="button" class="close" role="button" title="Close" {{on "click" (fn @close false)}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
<div class="modal-body">
<p>
Your newsletter <strong>{{@data.newsletter.name}}</strong> will be
immediately reactivated and become visible to your members.
</p>
</div>
<div class="modal-footer" {{on-key "Enter" (perform @data.unarchiveNewsletterTask @data.newsletter)}}>
<button
type="button"
class="gh-btn"
{{on "click" (fn @close false)}}
>
<span>Cancel</span>
</button>
<GhTaskButton
@buttonText="Reactivate"
@runningText="Reactivating"
@showSuccess={{false}}
@task={{@data.unarchiveNewsletterTask}}
@taskArgs={{@data.newsletter}}
@class="gh-btn gh-btn-black gh-btn-icon"
/>
</div>
</div>