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