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

Notification fix (#3939)

* Fix docstring for NotificationMessage class

* Fix for 'refresh' button in notification table

* Simplify API for marking notifications as 'read'

- Simply update the detail serializer
- No requirement for extra API endpoints
- Same updates for news feed entry
- Hide 'read' news on the home page
- Add ability to mark news items as read via table

* Bug fix for build.js

* Fix for part category template
This commit is contained in:
Oliver
2022-11-17 08:26:19 +11:00
committed by GitHub
parent 54e7dd28e5
commit 95645c7b14
7 changed files with 72 additions and 87 deletions

View File

@ -25,7 +25,7 @@
{% endblock %}
{% block actions %}
{% if user.is_staff and roles.part_category.change %}
{% if category and user.is_staff and roles.part_category.change %}
{% url 'admin:part_partcategory_change' category.pk as url %}
{% include "admin_button.html" with url=url %}
{% endif %}