discourse/app/assets/javascripts/admin/controllers/modals/admin-start-backup.js.es6
Gerhard Schlager 681262ddce FIX: Backup logs were usually missing the first few lines
And because of debouncing, the log wasn't always reset at the beginning of a backup or restore.
2018-09-19 20:27:35 +02:00

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");
}
}
});