Map readonly

This commit is contained in:
Adria Navarro 2024-05-30 11:26:12 +02:00
parent 8e72f1f0fa
commit b68940bca4
2 changed files with 5 additions and 0 deletions

View File

@ -69,6 +69,10 @@
return PERMISSION_OPTIONS.HIDDEN
}
if (column.readonly) {
return PERMISSION_OPTIONS.READONLY
}
return PERMISSION_OPTIONS.WRITABLE
}
</script>

View File

@ -146,6 +146,7 @@ export const initialise = context => {
schema: fieldSchema,
width: fieldSchema.width || oldColumn?.width || DefaultColumnWidth,
visible: fieldSchema.visible ?? true,
readonly: fieldSchema.readonly,
order: fieldSchema.order ?? oldColumn?.order,
primaryDisplay: field === primaryDisplay,
}