mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
23 lines
527 B
JavaScript
23 lines
527 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");
|
|
},
|
|
},
|
|
});
|