mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 11:39:37 +08:00
don't show share switch for root and share root notes, #2465
This commit is contained in:
parent
3f307b117e
commit
a789025025
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,10 @@ import server from "../services/server.js";
|
|||
import utils from "../services/utils.js";
|
||||
|
||||
export default class SharedSwitchWidget extends SwitchWidget {
|
||||
isEnabled() {
|
||||
return super.isEnabled() && this.noteId !== 'root' && this.noteId !== 'share';
|
||||
}
|
||||
|
||||
doRender() {
|
||||
super.doRender();
|
||||
|
||||
|
|
Loading…
Reference in a new issue