2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00
discourse/app/assets/javascripts/admin/models/backup-status.js.es6

11 lines
321 B
Text
Raw Normal View History

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