mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
be354e7950
This commit was generated using the ember-native-class-codemod along with a handful of manual updates
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;
|
|
}
|