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

13 lines
402 B
Plaintext
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;
}
});