2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Optional error notification (#5506)

* Add user setting for receiving error notifications

* Ignore uses who don't want error notifications

* Add config to settings page
This commit is contained in:
Oliver
2023-09-05 15:23:14 +10:00
committed by GitHub
parent 2243f288ee
commit f917c91522
3 changed files with 25 additions and 7 deletions

View File

@ -13,6 +13,9 @@
<div class='row'>
<table class='table table-striped table-condensed'>
<tbody>
{% if user.is_staff %}
{% include "InvenTree/settings/setting.html" with key="NOTIFICATION_ERROR_REPORT" icon='fa-flag' user_setting=True %}
{% endif %}
{% notification_settings_list as settings %}
{% for setting in settings %}
{% include "InvenTree/settings/setting.html" with key=setting.key icon=setting.icon method=setting.method notification_setting=True %}