Add storage translation to dash

Remote "storage" label if no mounts selected
This commit is contained in:
amcmanu3 2023-11-30 12:33:11 -05:00
parent 52f90f1ee3
commit 304da0da8a
2 changed files with 6 additions and 2 deletions

View File

@ -102,8 +102,11 @@
<div class="col-12 mt-4">
<div class="d-flex">
<div class="wrapper" style="width: 100%;">
<h5 class="mb-1 font-weight-medium text-primary">Storage
{% if len(data["monitored"]) > 0 %}
<h5 class="mb-1 font-weight-medium text-primary">{{ translate('dashboard', 'storage',
data['lang']) }}
</h5>
{% end %}
<div id="storage_data">
<div class="row">
{% for item in data['hosts_data']['disk_json'] %}

View File

@ -111,6 +111,7 @@
"starting": "Delayed-Start",
"status": "Status",
"stop": "Stop",
"storage": "Storage",
"version": "Version",
"welcome": "Welcome to Crafty Controller"
},
@ -655,4 +656,4 @@
"webhook_body": "Webhook Body",
"webhooks": "Webhooks"
}
}
}