mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Merge pull request #4655 from jaswilli/modal-cleanup
Remove files for a modal that is no longer used.
This commit is contained in:
commit
4c12f5aa49
2 changed files with 0 additions and 41 deletions
|
@ -1,33 +0,0 @@
|
||||||
var AuthFailedUnsavedController = Ember.Controller.extend({
|
|
||||||
editorController: Ember.computed.alias('model'),
|
|
||||||
|
|
||||||
actions: {
|
|
||||||
confirmAccept: function () {
|
|
||||||
var editorController = this.get('editorController');
|
|
||||||
|
|
||||||
if (editorController) {
|
|
||||||
editorController.get('model').rollback();
|
|
||||||
}
|
|
||||||
|
|
||||||
window.onbeforeunload = null;
|
|
||||||
|
|
||||||
window.location = this.get('ghostPaths').adminRoot + '/signin/';
|
|
||||||
},
|
|
||||||
|
|
||||||
confirmReject: function () {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
confirm: {
|
|
||||||
accept: {
|
|
||||||
text: 'Leave',
|
|
||||||
buttonClass: 'btn btn-red'
|
|
||||||
},
|
|
||||||
reject: {
|
|
||||||
text: 'Stay',
|
|
||||||
buttonClass: 'btn btn-default btn-minor'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
export default AuthFailedUnsavedController;
|
|
|
@ -1,8 +0,0 @@
|
||||||
{{#gh-modal-dialog action="closeModal" showClose=true type="action" style="wide,centered" animation="fade"
|
|
||||||
title="Post NOT saved." confirm=confirm}}
|
|
||||||
|
|
||||||
<p>Hey there! Something has gone wrong and you have been logged out. It looks like you have unsaved content that will be lost if you leave this page.</p>
|
|
||||||
|
|
||||||
<p>Copy your content somewhere safe before you go!</p>
|
|
||||||
|
|
||||||
{{/gh-modal-dialog}}
|
|
Loading…
Add table
Reference in a new issue