Mark readonly as restricted

This commit is contained in:
Adria Navarro 2024-05-30 11:43:28 +02:00
parent b68940bca4
commit fbfe85c903
1 changed files with 4 additions and 2 deletions

View File

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