Improvements for alert notifications

- Dismissable
- Delete after a certain amount of time
This commit is contained in:
Oliver committed 2021-11-03 17:55:30 +11:00
1 parent 85adf842f6
commit e7f6268640
6 files changed
+99 -53

No files matched your search

+7 -5
View File
@@ -23,13 +23,15 @@
{% include "admin_button.html" with url=url %}
{% endif %}
<button type='button' class='btn btn-outline-secondary' id='toggle-starred' title='{% trans "Subscribe to nofications for this part" %}'>
{% if starred %}
{% if starred %}
<button type='button' class='btn btn-outline-secondary' id='toggle-starred' title='{% trans "You are subscribed to nofications for this part" %}'>
<span id='part-star-icon' class='fas fa-bell icon-green'/>
{% else %}
<span id='part-star-icon' class='fa fa-bell-slash'/>
{% endif %}
</button>
{% else %}
<button type='button' class='btn btn-outline-secondary' id='toggle-starred' title='{% trans "Subscribe to nofications for this part" %}'>
<span id='part-star-icon' class='fa fa-bell-slash'/>
</button>
{% endif %}
{% if barcodes %}
<!-- Barcode actions menu -->