discourse/app/assets/javascripts/admin/controllers/modals/admin-start-backup.js
2020-03-13 17:03:08 -04:00

23 lines
525 B
JavaScript

import Controller, { inject as controller } from "@ember/controller";
import ModalFunctionality from "discourse/mixins/modal-functionality";
export default Controller.extend(ModalFunctionality, {
adminBackupsLogs: controller(),
actions: {
startBackupWithUploads() {
this.send("closeModal");
this.send("startBackup", true);
},
startBackupWithoutUploads() {
this.send("closeModal");
this.send("startBackup", false);
},
cancel() {
this.send("closeModal");
}
}
});