FIX: modal backup wasn't working
This commit is contained in:
parent
4787e73954
commit
399418e1ff
|
@ -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 () {
|
|
@ -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');
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue