mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-10-14 02:31:58 +00:00
Update OCR-Models list + small fix for empty list
This commit is contained in:
@@ -163,3 +163,14 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endblock modals %}
|
||||
|
||||
{% block scripts %}
|
||||
{{ super() }}
|
||||
<script>
|
||||
// Disable user model selection if no models are available
|
||||
{% if user_spacy_nlp_pipeline_models_count == 0 %}
|
||||
optionGroupOptions = document.querySelectorAll(".optgroup-option");
|
||||
optionGroupOptions[0].classList.add("disabled");
|
||||
{% endif %}
|
||||
</script>
|
||||
{% endblock scripts %}
|
||||
|
Reference in New Issue
Block a user