1
0
Fork 0
mirror of synced 2024-09-13 07:53:31 +12:00

Mark readonly as restricted

This commit is contained in:
Adria Navarro 2024-05-30 11:43:28 +02:00
parent b68940bca4
commit fbfe85c903

View file

@ -29,8 +29,10 @@
}
const getText = columns => {
const hidden = columns.filter(col => !col.visible).length
return hidden ? `Columns (${hidden} restricted)` : "Columns"
const restricted = columns.filter(
col => !col.visible || col.readonly
).length
return restricted ? `Columns (${restricted} restricted)` : "Columns"
}
$: isViewReadonlyColumnsEnabled = $licensing.isViewReadonlyColumnsEnabled