Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.tsxindex 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 | nulltoolbar: !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()]