FIX: modal backup wasn't working

This commit is contained in:
Régis Hanol 2015-03-14 12:46:46 +01:00
parent 4787e73954
commit 399418e1ff
2 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,6 @@ import ModalFunctionality from 'discourse/mixins/modal-functionality';
import Controller from 'discourse/controllers/controller';
export default Controller.extend(ModalFunctionality, {
needs: ["adminBackupsLogs"],
_startBackup: function (withUploads) {
@ -17,11 +16,11 @@ export default Controller.extend(ModalFunctionality, {
actions: {
startBackup: function () {
return this._startBackup();
this._startBackup();
},
startBackupWithoutUpload: function () {
return this._startBackup(false);
this._startBackup(false);
},
cancel: function () {

View File

@ -45,7 +45,7 @@ export default Discourse.Route.extend({
actions: {
startBackup() {
showModal('admin_start_backup');
showModal('modals/admin-start-backup');
this.controllerFor('modal').set('modalClass', 'start-backup-modal');
},