mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 01:06:36 +01:00
add a button to temporarily hide TOC, closes #3555
This commit is contained in:
@@ -10,7 +10,7 @@ import froca from "../services/froca.js";
|
||||
export default class RootCommandExecutor extends Component {
|
||||
editReadOnlyNoteCommand() {
|
||||
const noteContext = appContext.tabManager.getActiveContext();
|
||||
noteContext.readOnlyTemporarilyDisabled = true;
|
||||
noteContext.viewScope.readOnlyTemporarilyDisabled = true;
|
||||
|
||||
appContext.triggerEvent("readOnlyTemporarilyDisabled", { noteContext });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user