mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-30 03:24:38 +00:00
[UI] Fixes for "tags" field (#13233)
- Fetch appropriate 'tags' detail in the form request - Additional playwright tests
This commit is contained in:
1 parent
061981ac54
commit
3383e865cb
18 files changed
+76
-24
No files matched your search
@@ -75,6 +75,7 @@ export type ApiFormFieldHeader = {
|
||||
* @param addRow : Callback function to add a new row to a table field
|
||||
* @param headers : Optional definitions of table headers (for table fields)
|
||||
* @param singleFetchFunction : Optional function to fetch a single value for this field (used for fetching the initial value when editing an existing object)
|
||||
* @param fetchParams : Optional query parameters required on the initial data request to populate this field (e.g. optional serializer fields such as 'tags')
|
||||
*/
|
||||
export type ApiFormFieldType = {
|
||||
label?: string;
|
||||
@@ -138,6 +139,7 @@ export type ApiFormFieldType = {
|
||||
headers?: ApiFormFieldHeader[];
|
||||
depends_on?: string[];
|
||||
singleFetchFunction?: (value: any) => Promise<any> | null;
|
||||
fetchParams?: Record<string, string>;
|
||||
};
|
||||
|
||||
export type ApiFormFieldSet = Record<string, ApiFormFieldType>;
|
||||
|
||||
Reference in new issue
Block a user