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

22 lines
474 B
Plaintext
Raw Normal View History

2018-06-15 23:03:24 +08:00
import ModalFunctionality from "discourse/mixins/modal-functionality";
2014-08-21 00:48:56 +08:00
export default Ember.Controller.extend(ModalFunctionality, {
adminBackupsLogs: Ember.inject.controller(),
2014-08-21 00:48:56 +08:00
actions: {
startBackupWithUploads() {
this.send("closeModal");
this.send("startBackup", true);
2014-08-21 00:48:56 +08:00
},
startBackupWithoutUploads() {
this.send("closeModal");
this.send("startBackup", false);
2014-08-21 00:48:56 +08:00
},
cancel() {
2014-08-21 00:48:56 +08:00
this.send("closeModal");
}
}
});