mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 13:23:44 +08:00
24 lines
539 B
JavaScript
24 lines
539 B
JavaScript
import { inject } from "@ember/controller";
|
|
import Controller from "@ember/controller";
|
|
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
|
|
|
export default Controller.extend(ModalFunctionality, {
|
|
adminBackupsLogs: inject(),
|
|
|
|
actions: {
|
|
startBackupWithUploads() {
|
|
this.send("closeModal");
|
|
this.send("startBackup", true);
|
|
},
|
|
|
|
startBackupWithoutUploads() {
|
|
this.send("closeModal");
|
|
this.send("startBackup", false);
|
|
},
|
|
|
|
cancel() {
|
|
this.send("closeModal");
|
|
}
|
|
}
|
|
});
|