2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-18 18:56:31 +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:
Oliver
2025-06-17 22:16:19 +10:00
committed by GitHub
parent 21d44d0039
commit 92667876fe
19 changed files with 222 additions and 55 deletions

View File

@@ -174,6 +174,7 @@ export interface ApiFormProps {
*/
export interface ApiFormModalProps extends ApiFormProps {
title: string;
modalId?: string;
cancelText?: string;
cancelColor?: string;
onClose?: () => void;

View File

@@ -1,6 +1,7 @@
import type { UiSizeType } from './Core';
export interface UseModalProps {
id: string;
title: string;
children: React.ReactElement;
size?: UiSizeType;