11 lines
321 B
JavaScript
11 lines
321 B
JavaScript
import computed from "ember-addons/ember-computed-decorators";
|
|
|
|
export default Discourse.Model.extend({
|
|
restoreDisabled: Ember.computed.not("restoreEnabled"),
|
|
|
|
@computed("allowRestore", "isOperationRunning")
|
|
restoreEnabled(allowRestore, isOperationRunning) {
|
|
return allowRestore && !isOperationRunning;
|
|
}
|
|
});
|