mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
13 lines
320 B
Plaintext
13 lines
320 B
Plaintext
|
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;
|
||
|
}
|
||
|
|
||
|
});
|