mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 07:33:37 +08:00
11 lines
318 B
JavaScript
11 lines
318 B
JavaScript
import computed from "ember-addons/ember-computed-decorators";
|
|
|
|
export default Discourse.Model.extend({
|
|
restoreDisabled: Em.computed.not("restoreEnabled"),
|
|
|
|
@computed("allowRestore", "isOperationRunning")
|
|
restoreEnabled(allowRestore, isOperationRunning) {
|
|
return allowRestore && !isOperationRunning;
|
|
}
|
|
});
|