FIX: shows disk usage even if no backups taken (#6189)

This commit is contained in:
Joffrey JAFFEUX 2018-07-26 18:38:55 -04:00 committed by GitHub
parent c115ace272
commit 59684adc43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -28,7 +28,7 @@ export default Ember.Controller.extend(PeriodComputationMixin, {
lastBackupTakenAt: Ember.computed.alias(
"model.attributes.last_backup_taken_at"
),
shouldDisplayDurability: Ember.computed.and("lastBackupTakenAt", "diskSpace"),
shouldDisplayDurability: Ember.computed.and("diskSpace"),
@computed
topReferredTopicsTopions() {

View File

@ -132,8 +132,11 @@
</h3>
<p>
{{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>
</div>
{{/if}}