mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 06:08:55 +08:00

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;
|
|
}
|