9 lines
358 B
JavaScript
9 lines
358 B
JavaScript
import { and, not } from "@ember/object/computed";
|
|
import Controller from "@ember/controller";
|
|
export default class AdminBackupsController extends Controller {
|
|
@not("model.isOperationRunning") noOperationIsRunning;
|
|
@not("rollbackEnabled") rollbackDisabled;
|
|
@and("model.canRollback", "model.restoreEnabled", "noOperationIsRunning")
|
|
rollbackEnabled;
|
|
}
|