mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
50c762e222
closes https://github.com/TryGhost/Team/issues/1540
refs 58290a6134
- follows same pattern as archiving
32 lines
1.1 KiB
Handlebars
32 lines
1.1 KiB
Handlebars
<div class="modal-content">
|
|
<header class="modal-header" data-test-modal="confirm-newsletter-archive">
|
|
<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 archived and no longer be visible to your members.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="modal-footer" {{on-key "Enter" (perform @data.archiveNewsletterTask @data.newsletter)}}>
|
|
<button
|
|
type="button"
|
|
class="gh-btn"
|
|
{{on "click" (fn @close false)}}
|
|
>
|
|
<span>Cancel</span>
|
|
</button>
|
|
|
|
<GhTaskButton
|
|
@buttonText="Archive"
|
|
@runningText="Archiving"
|
|
@showSuccess={{false}}
|
|
@task={{@data.archiveNewsletterTask}}
|
|
@taskArgs={{@data.newsletter}}
|
|
@class="gh-btn gh-btn-black gh-btn-icon"
|
|
/>
|
|
</div>
|
|
</div> |