mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
client: Disable share button in options
This commit is contained in:
parent
1284cf9868
commit
c1ab1296f8
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user