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(
|
2015-08-06 12:14:59 -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
|
|
|
});
|