mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-19 03:52:25 -05:00
18 lines
422 B
JavaScript
18 lines
422 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"),
|
||
|
|
||
|
});
|