feat: custom types can bind a field layout (profile) - layout select in type editor, respected in record form
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ export const syncStatus = () => call<SyncStatus>('sync_status');
|
||||
|
||||
// ---- footprint type ----
|
||||
export const listTypes = () => call<{ items: FootprintType[] }>('type_list');
|
||||
export const upsertType = (p: { id?: number; name: string; icon: string; color: string; sort: number; form_template: FormField[]; closed?: boolean }) =>
|
||||
export const upsertType = (p: { id?: number; name: string; icon: string; color: string; sort: number; form_template: FormField[]; profile?: string; closed?: boolean }) =>
|
||||
call<{ item: FootprintType }>('type_upsert', p);
|
||||
export const deleteType = (id: number) => call<{ ok: true }>('type_delete', { id });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user