mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: shows disk usage even if no backups taken (#6189)
This commit is contained in:
parent
c115ace272
commit
59684adc43
2 changed files with 6 additions and 3 deletions
|
@ -28,7 +28,7 @@ export default Ember.Controller.extend(PeriodComputationMixin, {
|
||||||
lastBackupTakenAt: Ember.computed.alias(
|
lastBackupTakenAt: Ember.computed.alias(
|
||||||
"model.attributes.last_backup_taken_at"
|
"model.attributes.last_backup_taken_at"
|
||||||
),
|
),
|
||||||
shouldDisplayDurability: Ember.computed.and("lastBackupTakenAt", "diskSpace"),
|
shouldDisplayDurability: Ember.computed.and("diskSpace"),
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
topReferredTopicsTopions() {
|
topReferredTopicsTopions() {
|
||||||
|
|
|
@ -132,8 +132,11 @@
|
||||||
</h3>
|
</h3>
|
||||||
<p>
|
<p>
|
||||||
{{diskSpace.backups_used}} ({{i18n "admin.dashboard.space_free" size=diskSpace.backups_free}})
|
{{diskSpace.backups_used}} ({{i18n "admin.dashboard.space_free" size=diskSpace.backups_free}})
|
||||||
<br />
|
|
||||||
{{{i18n "admin.dashboard.lastest_backup" date=backupTimestamp}}}
|
{{#if lastBackupTakenAt}}
|
||||||
|
<br />
|
||||||
|
{{{i18n "admin.dashboard.lastest_backup" date=backupTimestamp}}}
|
||||||
|
{{/if}}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue