From a789025025a8039cc43def8f739c6c0fc45797ec Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 24 Dec 2021 22:34:15 +0100 Subject: [PATCH] don't show share switch for root and share root notes, #2465 --- src/public/app/widgets/shared_switch.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/public/app/widgets/shared_switch.js b/src/public/app/widgets/shared_switch.js index 913e1020b..f9fbd000a 100644 --- a/src/public/app/widgets/shared_switch.js +++ b/src/public/app/widgets/shared_switch.js @@ -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();