mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 15:56:29 +01:00
client: Disable share button in options
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user