discourse/app/assets/javascripts/admin/addon/controllers/modals/admin-start-backup.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
527 B
JavaScript
Raw Normal View History

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