mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
12 lines
320 B
JavaScript
12 lines
320 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;
|
|
}
|
|
|
|
});
|