diff --git a/ui/src/views/form/FormButtons.tsx b/ui/src/views/form/FormButtons.tsx index 9ea24981..e7791e66 100644 --- a/ui/src/views/form/FormButtons.tsx +++ b/ui/src/views/form/FormButtons.tsx @@ -16,6 +16,7 @@ import { GridExtraFilterState } from '../list/Utils' import { usePWA } from '@/utils/hooks/usePWA' const FormButtons = (props: { + isSubForm?: boolean mode: RowMode listFormCode: string id?: string @@ -33,6 +34,7 @@ const FormButtons = (props: { onActionView?: () => void }) => { const { + isSubForm, mode, listFormCode, id, @@ -168,21 +170,24 @@ const FormButtons = (props: { {!!commandColumnData?.buttons?.filter((item) => typeof item !== 'string').length && ( )} - + + {!isSubForm && ( + + )} {mode != 'new' && ( )} - {checkPermission(gridDto?.gridOptions.permissionDto.c) && ( + {checkPermission(gridDto?.gridOptions.permissionDto.c) && !isSubForm && (