discourse/app/assets/javascripts/admin/controllers/admin-backups.js
2020-03-13 17:03:08 -04:00

12 lines
343 B
JavaScript

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