discourse/app/assets/javascripts/admin/controllers/modals/admin-start-backup.js.es6

22 lines
474 B
JavaScript

import ModalFunctionality from "discourse/mixins/modal-functionality";
export default Ember.Controller.extend(ModalFunctionality, {
adminBackupsLogs: Ember.inject.controller(),
actions: {
startBackupWithUploads() {
this.send("closeModal");
this.send("startBackup", true);
},
startBackupWithoutUploads() {
this.send("closeModal");
this.send("startBackup", false);
},
cancel() {
this.send("closeModal");
}
}
});