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

10 lines
265 B
JavaScript
Raw Normal View History

2014-02-21 19:41:01 -05: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-21 19:41:01 -05:00
});