discourse/app/assets/javascripts/admin/models/backup_status.js

10 lines
265 B
JavaScript
Raw Normal View History

2014-02-22 08:41:01 +08: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 08:41:01 +08:00
});