mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
6a43cb27c3
refs https://github.com/TryGhost/Team/issues/559 - switched to new ember-promise-modals pattern - simplified `willTransition` handling because we can now wait on the promise returned from opening the modal - the modal content was changed to use `{{on "click" (fn @close true)}}` on the "leave" button so we can check for that return value for leave confirmation
21 lines
741 B
Handlebars
21 lines
741 B
Handlebars
<div class="modal-content">
|
|
<header class="modal-header">
|
|
<h1>Are you sure you want to leave this page?</h1>
|
|
</header>
|
|
<button class="close" title="Close" type="button" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
|
|
|
<div class="modal-body">
|
|
<p>
|
|
Hey there! It looks like you're in the middle of writing something and
|
|
you haven't saved all of your content.
|
|
</p>
|
|
|
|
<p>Save before you go!</p>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button class="gh-btn" {{on "click" @close}}><span>Stay</span></button>
|
|
<button class="gh-btn gh-btn-red" {{on "click" (fn @close true)}}><span>Leave</span></button>
|
|
</div>
|
|
|
|
</div> |