Skip to content

Build your personal knowledge base with Trilium Notes

feat(spreadsheet): hide cell protection mechanism

Elian Doran8d667e838a51
diff --git a/apps/client/src/widgets/type_widgets/Spreadsheet.tsx b/apps/client/src/widgets/type_widgets/Spreadsheet.tsx
index 733dcfd3ee..c91378fa95 100644
--- a/apps/client/src/widgets/type_widgets/Spreadsheet.tsx
+++ b/apps/client/src/widgets/type_widgets/Spreadsheet.tsx
@@ -62,7 +62,12 @@ function useInitializeSpreadsheet(containerRef: MutableRef<HTMLDivElement | null
toolbar: !readOnly,
contextMenu: !readOnly,
formulaBar: !readOnly,
- footer: readOnly ? false : undefined
+ footer: readOnly ? false : undefined,
+ menu: {
+ "sheet.contextMenu.permission": { hidden: true },
+ "sheet-permission.operation.openPanel": { hidden: true },
+ "sheet.command.add-range-protection-from-toolbar": { hidden: true },
+ },
}),
UniverSheetsNotePreset()
]