From 2ee731a06d30e68313b435f7c8b8d212ae045caa Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Mon, 15 Dec 2014 15:26:40 +0000 Subject: [PATCH] Remove files for a modal that is no longer used. Refs #4602 - The modal dialog that used to be shown when re-auth was needed in the editor has been replaced. --- .../controllers/modals/auth-failed-unsaved.js | 33 ------------------- .../templates/modals/auth-failed-unsaved.hbs | 8 ----- 2 files changed, 41 deletions(-) delete mode 100644 core/client/controllers/modals/auth-failed-unsaved.js delete mode 100644 core/client/templates/modals/auth-failed-unsaved.hbs 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}}