discourse/app/assets/javascripts/admin/addon/controllers/admin-backups.js
2020-12-01 15:31:26 -03:00

12 lines
344 B
JavaScript

import { and, not } 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"),
});