[PUI] Panels plugin fix (#8147)

* Rename "get_custom_panels" method

- So that PUI plugin does not conflict with CUI plugin

* Update docstrings

* Rename "get_ui_panels" -> "ui_panels"

* Docs fix

* rename "ui_panels" -> "get_ui_panels"
This commit is contained in:
Oliver
2024-09-19 17:23:09 +10:00
committed by GitHub
parent 6a8875a4a6
commit 8514970da5
4 changed files with 24 additions and 14 deletions
@@ -44,7 +44,7 @@ class SampleUserInterfacePlugin(SettingsMixin, UserInterfaceMixin, InvenTreePlug
},
}
def get_custom_panels(self, instance_type: str, instance_id: int, request):
def get_ui_panels(self, instance_type: str, instance_id: int, request, **kwargs):
"""Return a list of custom panels to be injected into the UI."""
panels = []