mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: honour error status in alerts
Co-authored-by: David Larlet <david@larlet.fr>
This commit is contained in:
parent
bc1eaa05c9
commit
2cf3a4e6a3
1 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,10 @@
|
|||
{% include "umap/components/alerts/alert.html" %}
|
||||
{% for message in messages %}
|
||||
<script type="module" defer>
|
||||
{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}
|
||||
U.Alert.error("{{ message }}")
|
||||
{% else %}
|
||||
U.Alert.success("{{ message }}")
|
||||
{% endif %}
|
||||
</script>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue