hardened ui against the db not being upgraded or importer not being ran

This commit is contained in:
daydensteve
2024-11-08 09:17:12 -05:00
parent 954bd565d3
commit eb18ad22b8
4 changed files with 103 additions and 78 deletions

View File

@@ -124,6 +124,12 @@
{% endif %}
</div>
{% if wears|length == 0 or faces|length == 0 or heads|length == 0 or skins|length == 0 or items|length == 0 or fronts|length == 0 or backs|length == 0 %}
<script>
// Server DB lacks necessary info. Maybe importer never got ran for this verison?
document.getElementById("name_wear").innerHTML = "Server DB needs upgraded or is not populated with necessary data";
</script>
{% else %}
<script>
{% include 'titles/chuni/templates/scripts/collapsibles.js' %}
@@ -298,5 +304,6 @@ for (const type of types) {
// Expand the first collapsible so the user can get the gist of it.
Collapsibles.expandFirst();
</script>
{% endif %}
{% endblock content %}