mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-04 04:30:56 +00:00
fix loading
This commit is contained in:
@ -375,6 +375,11 @@ class InvenTreePlugin(VersionMixin, MixinBase, MetaBase):
|
|||||||
@property
|
@property
|
||||||
def settings_url(self):
|
def settings_url(self):
|
||||||
"""URL to the settings panel for this plugin."""
|
"""URL to the settings panel for this plugin."""
|
||||||
|
from plugin.registry import registry
|
||||||
|
|
||||||
|
if registry.is_loading:
|
||||||
|
return None
|
||||||
|
|
||||||
config = self.plugin_config()
|
config = self.plugin_config()
|
||||||
if config:
|
if config:
|
||||||
return InvenTree.helpers.pui_url(f'/settings/admin/plugin/{config.pk}/')
|
return InvenTree.helpers.pui_url(f'/settings/admin/plugin/{config.pk}/')
|
||||||
|
Reference in New Issue
Block a user