don't show share switch for root and share root notes, #2465

This commit is contained in:
zadam 2021-12-24 22:34:15 +01:00
parent 3f307b117e
commit a789025025

View file

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