mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:30:57 +08:00
64557c4076
This commit was generated using the ember-native-class-codemod along with a handful of manual updates
13 lines
420 B
JavaScript
13 lines
420 B
JavaScript
import { not } from "@ember/object/computed";
|
|
import EmberObject from "@ember/object";
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
|
|
|
export default class BackupStatus extends EmberObject {
|
|
@not("restoreEnabled") restoreDisabled;
|
|
|
|
@discourseComputed("allowRestore", "isOperationRunning")
|
|
restoreEnabled(allowRestore, isOperationRunning) {
|
|
return allowRestore && !isOperationRunning;
|
|
}
|
|
}
|