2019-10-29 13:31:44 -04:00
|
|
|
import { inject } from "@ember/controller";
|
2019-10-23 13:06:54 -04:00
|
|
|
import Controller from "@ember/controller";
|
2018-06-15 11:03:24 -04:00
|
|
|
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
2014-08-20 12:48:56 -04:00
|
|
|
|
2019-10-23 13:06:54 -04:00
|
|
|
export default Controller.extend(ModalFunctionality, {
|
2019-10-29 13:13:31 -04:00
|
|
|
adminBackupsLogs: inject(),
|
2014-08-20 12:48:56 -04:00
|
|
|
|
|
|
|
actions: {
|
2018-09-19 14:00:03 -04:00
|
|
|
startBackupWithUploads() {
|
|
|
|
this.send("closeModal");
|
|
|
|
this.send("startBackup", true);
|
2014-08-20 12:48:56 -04:00
|
|
|
},
|
|
|
|
|
2018-09-19 14:00:03 -04:00
|
|
|
startBackupWithoutUploads() {
|
|
|
|
this.send("closeModal");
|
|
|
|
this.send("startBackup", false);
|
2014-08-20 12:48:56 -04:00
|
|
|
},
|
|
|
|
|
2016-10-21 14:09:52 -04:00
|
|
|
cancel() {
|
2014-08-20 12:48:56 -04:00
|
|
|
this.send("closeModal");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|