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
No known key found for this signature in database

View File

@ -8,7 +8,8 @@ import dialogService from "../services/dialog.js";
export default class SharedSwitchWidget extends SwitchWidget { export default class SharedSwitchWidget extends SwitchWidget {
isEnabled() { isEnabled() {
return super.isEnabled() return super.isEnabled()
&& !['root', '_share', '_hidden'].includes(this.noteId); && !['root', '_share', '_hidden'].includes(this.noteId)
&& !this.noteId.startsWith('_options');
} }
doRender() { doRender() {