2019-10-30 16:28:29 -04:00
|
|
|
import { not, and } from "@ember/object/computed";
|
2019-10-23 13:06:54 -04:00
|
|
|
import Controller from "@ember/controller";
|
|
|
|
export default Controller.extend({
|
2019-10-30 16:28:29 -04:00
|
|
|
noOperationIsRunning: not("model.isOperationRunning"),
|
|
|
|
rollbackEnabled: and(
|
2018-06-15 11:03:24 -04:00
|
|
|
"model.canRollback",
|
|
|
|
"model.restoreEnabled",
|
|
|
|
"noOperationIsRunning"
|
|
|
|
),
|
2019-10-30 16:28:29 -04:00
|
|
|
rollbackDisabled: not("rollbackEnabled")
|
2014-02-21 19:41:01 -05:00
|
|
|
});
|