discourse/app/assets/javascripts/admin/addon/controllers/admin-backups.js

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

9 lines
358 B
JavaScript
Raw Normal View History

import { and, not } from "@ember/object/computed";
import Controller from "@ember/controller";
export default class AdminBackupsController extends Controller {
@not("model.isOperationRunning") noOperationIsRunning;
@not("rollbackEnabled") rollbackDisabled;
@and("model.canRollback", "model.restoreEnabled", "noOperationIsRunning")
rollbackEnabled;
}