2019-10-30 16:28:29 -04:00
|
|
|
import { and, not } from "@ember/object/computed";
|
2019-10-23 13:06:54 -04:00
|
|
|
import Controller from "@ember/controller";
|
2023-03-15 05:42:12 -04:00
|
|
|
export default class AdminBackupsController extends Controller {
|
|
|
|
@not("model.isOperationRunning") noOperationIsRunning;
|
|
|
|
@not("rollbackEnabled") rollbackDisabled;
|
|
|
|
@and("model.canRollback", "model.restoreEnabled", "noOperationIsRunning")
|
|
|
|
rollbackEnabled;
|
|
|
|
}
|