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

17 lines
420 B
JavaScript
Raw Normal View History

2014-02-22 08:41:01 +08:00
/**
Data model for representing the status of backup/restore
@class BackupStatus
@extends Discourse.Model
@namespace Discourse
@module Discourse
**/
Discourse.BackupStatus = Discourse.Model.extend({
restoreDisabled: Em.computed.not("restoreEnabled"),
restoreEnabled: function() {
return Discourse.SiteSettings.allow_restore && !this.get("isOperationRunning");
}.property("isOperationRunning")
2014-02-22 08:41:01 +08:00
});