diff --git a/core/client/controllers/modals/auth-failed-unsaved.js b/core/client/controllers/modals/auth-failed-unsaved.js deleted file mode 100644 index 661edd7f54..0000000000 --- a/core/client/controllers/modals/auth-failed-unsaved.js +++ /dev/null @@ -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; diff --git a/core/client/templates/modals/auth-failed-unsaved.hbs b/core/client/templates/modals/auth-failed-unsaved.hbs deleted file mode 100644 index 4e2e152e2a..0000000000 --- a/core/client/templates/modals/auth-failed-unsaved.hbs +++ /dev/null @@ -1,8 +0,0 @@ -{{#gh-modal-dialog action="closeModal" showClose=true type="action" style="wide,centered" animation="fade" - title="Post NOT saved." confirm=confirm}} - -
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.
- -Copy your content somewhere safe before you go!
- -{{/gh-modal-dialog}}