Skip to content

Build your personal knowledge base with Trilium Notes

client: Disable share button in options

Elian Doranc1ab1296f822
diff --git a/src/public/app/widgets/shared_switch.js b/src/public/app/widgets/shared_switch.js
index edab7df815..65f654c142 100644
--- a/src/public/app/widgets/shared_switch.js
+++ b/src/public/app/widgets/shared_switch.js
@@ -8,7 +8,8 @@ import dialogService from "../services/dialog.js";
export default class SharedSwitchWidget extends SwitchWidget {
isEnabled() {
return super.isEnabled()
- && !['root', '_share', '_hidden'].includes(this.noteId);
+ && !['root', '_share', '_hidden'].includes(this.noteId)
+ && !this.noteId.startsWith('_options');
}
doRender() {