10 lines
265 B
JavaScript
Raw Normal View History

2014-02-22 01:41:01 +01:00
Discourse.BackupStatus = Discourse.Model.extend({
restoreDisabled: Em.computed.not("restoreEnabled"),
restoreEnabled: function() {
return this.get('allowRestore') && !this.get("isOperationRunning");
}.property("isOperationRunning", "allowRestore")
2014-02-22 01:41:01 +01:00
});