mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	[UI] Query Improvements (#9791)
* Fix for stockOperationModal * Re-check when opened status changes * rename stockOperationModal -> useStockOperationModal * Fix enabled status of query * Add option to specify modalId * Track modal state when open / close * Prevent generators from running until forms are open * Prevent double loading of tables * Fix useQuery * Fix queryKey * Revert API change
This commit is contained in:
		| @@ -174,6 +174,7 @@ export interface ApiFormProps { | ||||
|  */ | ||||
| export interface ApiFormModalProps extends ApiFormProps { | ||||
|   title: string; | ||||
|   modalId?: string; | ||||
|   cancelText?: string; | ||||
|   cancelColor?: string; | ||||
|   onClose?: () => void; | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| import type { UiSizeType } from './Core'; | ||||
|  | ||||
| export interface UseModalProps { | ||||
|   id: string; | ||||
|   title: string; | ||||
|   children: React.ReactElement; | ||||
|   size?: UiSizeType; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user