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

12 lines
343 B
Plaintext
Raw Normal View History

import { not, and } from "@ember/object/computed";
import Controller from "@ember/controller";
export default Controller.extend({
noOperationIsRunning: not("model.isOperationRunning"),
rollbackEnabled: and(
2018-06-15 23:03:24 +08:00
"model.canRollback",
"model.restoreEnabled",
"noOperationIsRunning"
),
rollbackDisabled: not("rollbackEnabled")
2014-02-22 08:41:01 +08:00
});