|
|
@ -7,6 +7,7 @@ import { |
|
|
|
IsFormInj, |
|
|
|
IsFormInj, |
|
|
|
IsGalleryInj, |
|
|
|
IsGalleryInj, |
|
|
|
IsGridInj, |
|
|
|
IsGridInj, |
|
|
|
|
|
|
|
IsPublicInj, |
|
|
|
MetaInj, |
|
|
|
MetaInj, |
|
|
|
NavigateDir, |
|
|
|
NavigateDir, |
|
|
|
OpenNewRecordFormHookInj, |
|
|
|
OpenNewRecordFormHookInj, |
|
|
@ -62,6 +63,8 @@ provide(IsGridInj, ref(false)) |
|
|
|
provide(PaginationDataInj, paginationData) |
|
|
|
provide(PaginationDataInj, paginationData) |
|
|
|
provide(ChangePageInj, changePage) |
|
|
|
provide(ChangePageInj, changePage) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isPublic = inject(IsPublicInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
const fields = inject(FieldsInj, ref([])) |
|
|
|
const fields = inject(FieldsInj, ref([])) |
|
|
|
|
|
|
|
|
|
|
|
const route = useRoute() |
|
|
|
const route = useRoute() |
|
|
@ -125,6 +128,10 @@ const attachments = (record: any): Attachment[] => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const expandForm = (row: RowType, state?: Record<string, any>) => { |
|
|
|
const expandForm = (row: RowType, state?: Record<string, any>) => { |
|
|
|
|
|
|
|
if (isPublic.value) { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const rowId = extractPkFromRow(row.row, meta.value!.columns!) |
|
|
|
const rowId = extractPkFromRow(row.row, meta.value!.columns!) |
|
|
|
|
|
|
|
|
|
|
|
if (rowId) { |
|
|
|
if (rowId) { |
|
|
|