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

11 lines
321 B
Plaintext
Raw Normal View History

import computed from "ember-addons/ember-computed-decorators";
export default Discourse.Model.extend({
2019-01-12 00:54:23 +08:00
restoreDisabled: Ember.computed.not("restoreEnabled"),
@computed("allowRestore", "isOperationRunning")
restoreEnabled(allowRestore, isOperationRunning) {
return allowRestore && !isOperationRunning;
}
});