mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
f74913cfb6
refs https://github.com/TryGhost/Team/issues/1734 refs https://github.com/TryGhost/Team/issues/559 refs https://github.com/TryGhost/Ghost/issues/14101 - switches to newer modal patterns ready for later Ember upgrades
24 lines
917 B
Handlebars
24 lines
917 B
Handlebars
<div class="modal-content" data-test-modal="update-snippet">
|
|
<header class="modal-header">
|
|
<h1>Update this snippet?</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>
|
|
"<strong>{{@data.snippet.name}}</strong>" will be overwritten.
|
|
Don't worry, this will only affect using the snippet in the future.
|
|
Any older posts using this snippet will stay the same.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button class="gh-btn" type="button" {{on "click" @close}}><span>Cancel</span></button>
|
|
<GhTaskButton
|
|
@buttonText="Update"
|
|
@successText="Updated"
|
|
@task={{this.updateSnippetTask}}
|
|
@class="gh-btn gh-btn-black gh-btn-icon"
|
|
/>
|
|
</div>
|
|
</div> |