2014-02-21 19:41:01 -05: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");
|
2014-03-18 21:21:10 -04:00
|
|
|
}.property("isOperationRunning")
|
2014-02-21 19:41:01 -05:00
|
|
|
});
|