mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Pass more information through to plugin panels
This commit is contained in:
		| @@ -68,6 +68,7 @@ function BasePanelGroup({ | ||||
|   // Hook to load plugins for this panel | ||||
|   const pluginPanels = usePluginPanels({ | ||||
|     targetModel: targetModel, | ||||
|     targetInstance: targetInstance, | ||||
|     targetId: targetId | ||||
|   }); | ||||
|  | ||||
|   | ||||
| @@ -78,7 +78,7 @@ export function usePluginPanels({ | ||||
|         }; | ||||
|       }) ?? [] | ||||
|     ); | ||||
|   }, [data]); | ||||
|   }, [data, targetId, targetModel, targetInstance]); | ||||
|  | ||||
|   return { | ||||
|     panels: panels | ||||
|   | ||||
| @@ -1098,6 +1098,7 @@ export default function PartDetail() { | ||||
|           <PanelGroup | ||||
|             pageKey="part" | ||||
|             panels={partPanels} | ||||
|             targetInstance={part} | ||||
|             targetModel={ModelType.part} | ||||
|             targetId={part.pk} | ||||
|           /> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user