client: Disable share button in options

This commit is contained in:
Elian Doran
2024-08-17 00:52:09 +03:00
parent 1284cf9868
commit c1ab1296f8

View File

@@ -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() {