discourse/app/assets/javascripts/admin/models/backup-status.js

Failed to ignore revisions in .git-blame-ignore-revs.

13 lines
402 B
JavaScript
Raw Normal View History

import discourseComputed from "discourse-common/utils/decorators";
import { not } from "@ember/object/computed";
2019-11-09 03:13:35 +08:00
import EmberObject from "@ember/object";
2019-11-09 03:13:35 +08:00
export default EmberObject.extend({
restoreDisabled: not("restoreEnabled"),
@discourseComputed("allowRestore", "isOperationRunning")
restoreEnabled(allowRestore, isOperationRunning) {
return allowRestore && !isOperationRunning;
}
});