mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 05:47:31 +08:00
17 lines
420 B
JavaScript
17 lines
420 B
JavaScript
/**
|
|
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")
|
|
});
|