Ghost/ghost/admin/app/components/modal-update-snippet.hbs
Kevin Ansfield 4184543307 Added confirmation modal when updating an existing snippet
refs https://github.com/TryGhost/Team/issues/973

- show confirmation modal instead of immediately replacing content of the existing snippet
2021-08-23 17:12:26 +01:00

20 lines
629 B
Handlebars

<header class="modal-header">
<h1>Update this snippet?</h1>
</header>
<a class="close" href="" role="button" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
<div class="modal-body">
<p>
Previous content for "<strong>{{this.snippet.name}}</strong>" will be overwritten.
</p>
</div>
<div class="modal-footer">
<button {{action "closeModal"}} class="gh-btn"><span>Cancel</span></button>
<GhTaskButton
@buttonText="Update"
@successText="Updated"
@task={{this.updateSnippet}}
@class="gh-btn gh-btn-red gh-btn-icon" />
</div>