2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

Improvements for alert notifications

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

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 -->