2020-03-06 17:41:41 +01:00
|
|
|
import Controller, { inject as controller } from "@ember/controller";
|
2022-11-08 10:40:56 +10:00
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
2014-08-20 18:48:56 +02:00
|
|
|
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
|
|
|
|
2019-10-23 13:06:54 -04:00
|
|
|
export default Controller.extend(ModalFunctionality, {
|
2020-03-06 17:41:41 +01:00
|
|
|
adminBackupsLogs: controller(),
|
2014-08-20 18:48:56 +02:00
|
|
|
|
2022-11-08 10:40:56 +10:00
|
|
|
@discourseComputed
|
|
|
|
warningMessage() {
|
|
|
|
// this is never shown here, but we may want to show different
|
|
|
|
// messages in plugins
|
|
|
|
return "";
|
|
|
|
},
|
|
|
|
|
|
|
|
@discourseComputed
|
|
|
|
yesLabel() {
|
|
|
|
return "yes_value";
|
|
|
|
},
|
|
|
|
|
2014-08-20 18:48:56 +02:00
|
|
|
actions: {
|
2018-09-19 20:00:03 +02:00
|
|
|
startBackupWithUploads() {
|
|
|
|
this.send("closeModal");
|
|
|
|
this.send("startBackup", true);
|
2014-08-20 18:48:56 +02:00
|
|
|
},
|
|
|
|
|
2018-09-19 20:00:03 +02:00
|
|
|
startBackupWithoutUploads() {
|
|
|
|
this.send("closeModal");
|
|
|
|
this.send("startBackup", false);
|
2014-08-20 18:48:56 +02:00
|
|
|
},
|
|
|
|
|
2016-10-21 14:09:52 -04:00
|
|
|
cancel() {
|
2014-08-20 18:48:56 +02:00
|
|
|
this.send("closeModal");
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|