mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 19:13:54 +08:00
48193767bf
Automatically generated by `eslint --fix` to satisfy the updated configuration
13 lines
420 B
JavaScript
13 lines
420 B
JavaScript
import EmberObject from "@ember/object";
|
|
import { not } from "@ember/object/computed";
|
|
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;
|
|
}
|
|
}
|