2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-27 17:20:49 +00:00

[PUI] Updates for AdminButton ()

* [PUI] Updates for AdminButton

- Hide if django admin interface is disabled
- Use correct admin URL

* Adjust InfoView

* Add playwright tests
This commit is contained in:
Oliver
2024-11-06 09:27:43 +11:00
committed by GitHub
parent 93a8090e99
commit 245803b0d4
6 changed files with 32 additions and 6 deletions
src
backend
InvenTree
InvenTree
frontend

@ -236,6 +236,9 @@ class InfoView(AjaxView):
'platform': InvenTree.version.inventreePlatform() if is_staff else None,
'installer': InvenTree.version.inventreeInstaller() if is_staff else None,
'target': InvenTree.version.inventreeTarget() if is_staff else None,
'django_admin': settings.INVENTREE_ADMIN_URL
if (is_staff and settings.INVENTREE_ADMIN_ENABLED)
else None,
}
return JsonResponse(data)