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.

40 lines
883 B
JavaScript
Raw Normal View History

import { action } from "@ember/object";
import Controller, { inject as controller } from "@ember/controller";
import discourseComputed from "discourse-common/utils/decorators";
2014-08-20 12:48:56 -04:00
import ModalFunctionality from "discourse/mixins/modal-functionality";
export default class AdminStartBackupController extends Controller.extend(
ModalFunctionality
) {
@controller adminBackupsLogs;
2014-08-20 12:48:56 -04:00
@discourseComputed
warningMessage() {
// this is never shown here, but we may want to show different
// messages in plugins
return "";
}
@discourseComputed
yesLabel() {
return "yes_value";
}
@action
startBackupWithUploads() {
this.send("closeModal");
this.send("startBackup", true);
}
2014-08-20 12:48:56 -04:00
@action
startBackupWithoutUploads() {
this.send("closeModal");
this.send("startBackup", false);
}
2014-08-20 12:48:56 -04:00
@action
cancel() {
this.send("closeModal");
}
}