mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-21 01:53:41 +08:00
This commit was generated using the ember-native-class-codemod along with a handful of manual updates
8 lines
358 B
JavaScript
Vendored
8 lines
358 B
JavaScript
Vendored
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;
|
|
}
|