mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
4184543307
refs https://github.com/TryGhost/Team/issues/973 - show confirmation modal instead of immediately replacing content of the existing snippet
20 lines
629 B
Handlebars
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>
|